Changeset 17338


Ignore:
Timestamp:
02/21/14 14:16:13 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: moved some GetInputValue to Element.cpp

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r17334 r17338  
    369369}
    370370/*}}}*/
     371void Element::GetInputValue(bool* pvalue,int inputenum){/*{{{*/
     372
     373        Input* input=inputs->GetInput(inputenum);
     374        if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
     375        input->GetInputValue(pvalue);
     376
     377}/*}}}*/
     378void Element::GetInputValue(int* pvalue,int inputenum){/*{{{*/
     379
     380        Input* input=inputs->GetInput(inputenum);
     381        if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
     382        input->GetInputValue(pvalue);
     383
     384}/*}}}*/
     385void Element::GetInputValue(IssmDouble* pvalue,int inputenum){/*{{{*/
     386
     387        Input* input=inputs->GetInput(inputenum);
     388        if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
     389        input->GetInputValue(pvalue);
     390
     391}/*}}}*/
     392void Element::GetInputValue(IssmDouble* pvalue,Gauss* gauss,int inputenum){/*{{{*/
     393
     394        Input* input=inputs->GetInput(inputenum);
     395        if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
     396        input->GetInputValue(pvalue,gauss);
     397
     398}/*}}}*/
    371399void Element::GetVerticesSidList(int* sidlist){/*{{{*/
    372400
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r17330 r17338  
    6969                void       GetInputListOnVertices(IssmDouble* pvalue,int enumtype);
    7070                void       GetInputListOnVertices(IssmDouble* pvalue,int enumtype,IssmDouble defaultvalue);
     71                void       GetInputValue(bool* pvalue,int enum_type);
     72                void       GetInputValue(int* pvalue,int enum_type);
     73                void       GetInputValue(IssmDouble* pvalue,int enum_type);
     74                void       GetInputValue(IssmDouble* pvalue,Gauss* gauss,int enum_type);
    7175                IssmDouble GetMaterialParameter(int enum_in);
    7276                void       GetPhi(IssmDouble* phi, IssmDouble*  epsilon, IssmDouble viscosity);
     
    168172                virtual IssmDouble GetGroundedPortion(IssmDouble* xyz_list)=0;
    169173                virtual void   GetInputValue(IssmDouble* pvalue,Node* node,int enumtype)=0;
    170                 virtual void   GetInputValue(bool* pvalue,int enum_type)=0;
    171                 virtual void   GetInputValue(int* pvalue,int enum_type)=0;
    172                 virtual void   GetInputValue(IssmDouble* pvalue,int enum_type)=0;
    173                 virtual void   GetInputValue(IssmDouble* pvalue,Gauss* gauss,int enum_type)=0;
    174174                virtual Node*  GetNode(int node_number)=0;
    175175                virtual void   GetVerticesCoordinates(IssmDouble** xyz_list)=0;
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r17337 r17338  
    907907}
    908908/*}}}*/
    909 /*FUNCTION Penta::GetInputValue(bool* pvalue,int inputenum) {{{*/
    910 void Penta::GetInputValue(bool* pvalue,int inputenum){
    911 
    912         Input* input=inputs->GetInput(inputenum);
    913         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    914         input->GetInputValue(pvalue);
    915 
    916 }/*}}}*/
    917 /*FUNCTION Penta::GetInputValue(int* pvalue,int inputenum) {{{*/
    918 void Penta::GetInputValue(int* pvalue,int inputenum){
    919 
    920         Input* input=inputs->GetInput(inputenum);
    921         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    922         input->GetInputValue(pvalue);
    923 
    924 }/*}}}*/
    925 /*FUNCTION Penta::GetInputValue(IssmDouble* pvalue,int inputenum) {{{*/
    926 void Penta::GetInputValue(IssmDouble* pvalue,int inputenum){
    927 
    928         Input* input=inputs->GetInput(inputenum);
    929         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    930         input->GetInputValue(pvalue);
    931 
    932 }/*}}}*/
    933 /*FUNCTION Penta::GetInputValue(IssmDouble* pvalue,Gauss* gauss,int inputenum) {{{*/
    934 void Penta::GetInputValue(IssmDouble* pvalue,Gauss* gauss,int inputenum){
    935 
    936         Input* input=inputs->GetInput(inputenum);
    937         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    938         input->GetInputValue(pvalue,gauss);
    939 
    940 }/*}}}*/
    941909/*FUNCTION Penta::GetVerticesCoordinates(IssmDouble** pxyz_list){{{*/
    942910void Penta::GetVerticesCoordinates(IssmDouble** pxyz_list){
  • issm/trunk-jpl/src/c/classes/Elements/Penta.h

    r17322 r17338  
    203203                int            GetElementType(void);
    204204                void           GetInputValue(IssmDouble* pvalue,Node* node,int enumtype);
    205                 void           GetInputValue(bool* pvalue,int enum_type);
    206                 void           GetInputValue(int* pvalue,int enum_type);
    207                 void           GetInputValue(IssmDouble* pvalue,int enum_type);
    208                 void           GetInputValue(IssmDouble* pvalue,Gauss* gauss,int enum_type);
    209205                Node*          GetNode(int node_number);
    210206                void           InputChangeName(int input_enum, int enum_type_old);
  • issm/trunk-jpl/src/c/classes/Elements/Seg.h

    r17322 r17338  
    125125                IssmDouble  GetGroundedPortion(IssmDouble* xyz_list){_error_("not implemented yet");};
    126126                void        GetInputValue(IssmDouble* pvalue,Node* node,int enumtype){_error_("not implemented yet");};
    127                 void        GetInputValue(bool* pvalue,int enum_type){_error_("not implemented yet");};
    128                 void        GetInputValue(int* pvalue,int enum_type){_error_("not implemented yet");};
    129                 void        GetInputValue(IssmDouble* pvalue,int enum_type){_error_("not implemented yet");};
    130                 void        GetInputValue(IssmDouble* pvalue,Gauss* gauss,int enum_type){_error_("not implemented yet");};
    131127                Node*       GetNode(int node_number){_error_("Not implemented");};
    132128                IssmDouble  GetXcoord(Gauss* gauss){_error_("Not implemented");};
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r17332 r17338  
    984984}
    985985/*}}}*/
    986 /*FUNCTION Tria::GetInputValue(bool* pvalue,int inputenum) {{{*/
    987 void Tria::GetInputValue(bool* pvalue,int inputenum){
    988 
    989         Input* input=inputs->GetInput(inputenum);
    990         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    991         input->GetInputValue(pvalue);
    992 
    993 }/*}}}*/
    994 /*FUNCTION Tria::GetInputValue(int* pvalue,int inputenum) {{{*/
    995 void Tria::GetInputValue(int* pvalue,int inputenum){
    996 
    997         Input* input=inputs->GetInput(inputenum);
    998         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    999         input->GetInputValue(pvalue);
    1000 
    1001 }/*}}}*/
    1002 /*FUNCTION Tria::GetInputValue(IssmDouble* pvalue,int inputenum) {{{*/
    1003 void Tria::GetInputValue(IssmDouble* pvalue,int inputenum){
    1004 
    1005         Input* input=inputs->GetInput(inputenum);
    1006         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    1007         input->GetInputValue(pvalue);
    1008 
    1009 }/*}}}*/
    1010 /*FUNCTION Tria::GetInputValue(IssmDouble* pvalue,Gauss* gauss,int inputenum) {{{*/
    1011 void Tria::GetInputValue(IssmDouble* pvalue,Gauss* gauss,int inputenum){
    1012 
    1013         Input* input=inputs->GetInput(inputenum);
    1014         if(!input) _error_("Input " << EnumToStringx(inputenum) << " not found in element");
    1015         input->GetInputValue(pvalue,gauss);
    1016 
    1017 }/*}}}*/
    1018986Node* Tria::GetNode(int node_number){/*{{{*/
    1019987        _assert_(node_number>=0);
  • issm/trunk-jpl/src/c/classes/Elements/Tria.h

    r17322 r17338  
    213213                void           NormalBase(IssmDouble* normal,IssmDouble* xyz_list);
    214214                void           GetInputValue(IssmDouble* pvalue,Node* node,int enumtype);
    215                 void           GetInputValue(bool* pvalue,int enum_type);
    216                 void           GetInputValue(int* pvalue,int enum_type);
    217                 void           GetInputValue(IssmDouble* pvalue,int enum_type);
    218                 void           GetInputValue(IssmDouble* pvalue,Gauss* gauss,int enum_type);
    219215                void           GetMaterialInputValue(IssmDouble* pvalue,Node* node,int enumtype);
    220216                Node*          GetNode(int node_number);
Note: See TracChangeset for help on using the changeset viewer.