Changeset 15689


Ignore:
Timestamp:
08/02/13 13:41:59 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: Added P1bubble and P1bubblecondensed elements for all solutions (to be tested) and replaced MaximumNumberOfEnums by MaximumNumberOfDefinitionsEnum so that Enum synchronization errors are detected for people using mki

Location:
issm/trunk-jpl/src
Files:
2 added
1 deleted
17 edited

Legend:

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

    r15688 r15689  
    32193219                        penta_node_ids[4]=iomodel->nodecounter+iomodel->elements[6*index+4];
    32203220                        penta_node_ids[5]=iomodel->nodecounter+iomodel->elements[6*index+5];
     3221                        break;
     3222                case P1bubbleEnum: case P1bubblecondensedEnum:
     3223                        numnodes         = 7;
     3224                        penta_node_ids   = xNew<int>(numnodes);
     3225                        penta_node_ids[0]=iomodel->nodecounter+iomodel->elements[6*index+0];
     3226                        penta_node_ids[1]=iomodel->nodecounter+iomodel->elements[6*index+1];
     3227                        penta_node_ids[2]=iomodel->nodecounter+iomodel->elements[6*index+2];
     3228                        penta_node_ids[3]=iomodel->nodecounter+iomodel->elements[6*index+3];
     3229                        penta_node_ids[4]=iomodel->nodecounter+iomodel->elements[6*index+4];
     3230                        penta_node_ids[5]=iomodel->nodecounter+iomodel->elements[6*index+5];
     3231                        penta_node_ids[6]=iomodel->nodecounter+iomodel->numberofvertices+index+1;
    32213232                        break;
    32223233                case P1xP2Enum:
  • issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp

    r15688 r15689  
    12061206
    12071207        switch(this->element_type){
    1208                 case P1Enum:
    1209                 case P1DGEnum:
     1208                case P1Enum: case P1DGEnum:
    12101209                        basis[0]=gauss->coord1*(1.-zeta)/2.;
    12111210                        basis[1]=gauss->coord2*(1.-zeta)/2.;
     
    12151214                        basis[5]=gauss->coord3*(1.+zeta)/2.;
    12161215                        return;
    1217                 case P1bubbleEnum:
     1216                case P1bubbleEnum: case P1bubblecondensedEnum:
    12181217                        basis[0]=gauss->coord1*(1.-zeta)/2.;
    12191218                        basis[1]=gauss->coord2*(1.-zeta)/2.;
     
    14871486                        dbasis[NUMNODESP1*2+5]   = .5*gauss->coord3;
    14881487                        return;
    1489                 case P1bubbleEnum:
     1488                case P1bubbleEnum: case P1bubblecondensedEnum:
    14901489                        /*Nodal function 1*/
    14911490                        dbasis[NUMNODESP1b*0+0]   = (zeta-1.)/4.;
     
    19221921
    19231922        switch(this->element_type){
    1924                 case P1Enum:            return NUMNODESP1;
    1925                 case P1bubbleEnum:      return NUMNODESP1b;
    1926                 case P2Enum:            return NUMNODESP2;
    1927                 case P2xP1Enum:         return NUMNODESP2xP1;
    1928                 case P1xP2Enum:         return NUMNODESP1xP2;
    1929                 case P1P1Enum:          return NUMNODESP1*2;
    1930                 case P1P1GLSEnum:       return NUMNODESP1*2;
    1931                 case MINIcondensedEnum: return NUMNODESP1b+NUMNODESP1;
    1932                 case MINIEnum:          return NUMNODESP1b+NUMNODESP1;
    1933                 case TaylorHoodEnum:    return NUMNODESP2+NUMNODESP1;
     1923                case P1Enum:                return NUMNODESP1;
     1924                case P1bubbleEnum:          return NUMNODESP1b;
     1925                case P1bubblecondensedEnum: return NUMNODESP1b;
     1926                case P2Enum:                return NUMNODESP2;
     1927                case P2xP1Enum:             return NUMNODESP2xP1;
     1928                case P1xP2Enum:             return NUMNODESP1xP2;
     1929                case P1P1Enum:              return NUMNODESP1*2;
     1930                case P1P1GLSEnum:           return NUMNODESP1*2;
     1931                case MINIcondensedEnum:     return NUMNODESP1b+NUMNODESP1;
     1932                case MINIEnum:              return NUMNODESP1b+NUMNODESP1;
     1933                case TaylorHoodEnum:        return NUMNODESP2+NUMNODESP1;
    19341934                default:       _error_("Element type "<<EnumToStringx(this->element_type)<<" not supported yet");
    19351935        }
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15670 r15689  
    23642364                        tria_node_ids[1]=iomodel->nodecounter+3*index+2;
    23652365                        tria_node_ids[2]=iomodel->nodecounter+3*index+3;
     2366                        break;
     2367                case P1bubbleEnum: case P1bubblecondensedEnum:
     2368                        numnodes        = 4;
     2369                        tria_node_ids   = xNew<int>(numnodes);
     2370                        tria_node_ids[0]=iomodel->nodecounter+iomodel->elements[3*index+0];
     2371                        tria_node_ids[1]=iomodel->nodecounter+iomodel->elements[3*index+1];
     2372                        tria_node_ids[2]=iomodel->nodecounter+iomodel->elements[3*index+2];
     2373                        tria_node_ids[3]=iomodel->nodecounter+iomodel->numberofvertices+index+1;
    23662374                        break;
    23672375                case P2Enum:
  • issm/trunk-jpl/src/c/classes/Elements/TriaRef.cpp

    r15567 r15689  
    1616
    1717/*Element macros*/
    18 #define NUMNODESP1 3
    19 #define NUMNODESP2 6
     18#define NUMNODESP1  3
     19#define NUMNODESP1b 4
     20#define NUMNODESP2  6
    2021
    2122/*Object constructors and destructor*/
     
    4344void TriaRef::SetElementType(int type,int type_counter){
    4445
    45         _assert_(type==P1Enum || type==P1DGEnum || type==P2Enum);
     46        _assert_(type==P1Enum || type==P1DGEnum || type==P1bubbleEnum || type==P1bubblecondensedEnum || type==P2Enum);
    4647
    4748        /*initialize element type*/
     
    431432
    432433        switch(this->element_type){
    433                 case P1Enum:
    434                 case P1DGEnum:
     434                case P1Enum: case P1DGEnum:
    435435                        basis[0]=gauss->coord1;
    436436                        basis[1]=gauss->coord2;
    437437                        basis[2]=gauss->coord3;
    438438                        return;
     439                case P1bubbleEnum: case P1bubblecondensedEnum:
     440                        /*Corner nodes*/
     441                        basis[0]=gauss->coord1*(2.*gauss->coord1-1.);
     442                        basis[1]=gauss->coord2*(2.*gauss->coord2-1.);
     443                        basis[2]=gauss->coord3*(2.*gauss->coord3-1.);
     444                        /*bubble*/
     445                        basis[3]=27.*gauss->coord1*gauss->coord2*gauss->coord3;
    439446                case P2Enum:
    440447                        /*Corner nodes*/
     
    467474
    468475        switch(this->element_type){
    469                 case P1Enum:
    470                 case P1DGEnum:
     476                case P1Enum: case P1DGEnum:
     477                        basis[0]=triabasis[index1];
     478                        basis[1]=triabasis[index2];
     479                        xDelete<IssmDouble>(triabasis);
     480                        return;
     481                case P1bubbleEnum: case P1bubblecondensedEnum:
    471482                        basis[0]=triabasis[index1];
    472483                        basis[1]=triabasis[index2];
     
    537548                        dbasis[NUMNODESP1*0+2] = 0;
    538549                        dbasis[NUMNODESP1*1+2] = SQRT3/3.;
     550                        return;
     551                case P1bubbleEnum: case P1bubblecondensedEnum:
     552                        /*Nodal function 1*/
     553                        dbasis[NUMNODESP1b*0+0] = -0.5;
     554                        dbasis[NUMNODESP1b*1+0] = -SQRT3/6.;
     555                        /*Nodal function 2*/
     556                        dbasis[NUMNODESP1b*0+1] = 0.5;
     557                        dbasis[NUMNODESP1b*1+1] = -SQRT3/6.;
     558                        /*Nodal function 3*/
     559                        dbasis[NUMNODESP1b*0+2] = 0;
     560                        dbasis[NUMNODESP1b*1+2] = SQRT3/3.;
     561                        /*Nodal function 4*/
     562                        dbasis[NUMNODESP1b*0+2] = 27.*(-.5*gauss->coord2*gauss->coord3 + .5*gauss->coord1*gauss->coord3);;
     563                        dbasis[NUMNODESP1b*1+2] = 27.*SQRT3*(-1./6.*gauss->coord2*gauss->coord3 - 1./6.*gauss->coord1*gauss->coord3 +1./3.*gauss->coord1*gauss->coord2);
    539564                        return;
    540565                case P2Enum:
     
    622647
    623648        switch(this->element_type){
    624                 case P1Enum:   return NUMNODESP1;
    625                 case P1DGEnum: return NUMNODESP1;
    626                 case P2Enum:   return NUMNODESP2;
     649                case P1Enum:                return NUMNODESP1;
     650                case P1DGEnum:              return NUMNODESP1;
     651                case P1bubbleEnum:          return NUMNODESP1b;
     652                case P1bubblecondensedEnum: return NUMNODESP1b;
     653                case P2Enum:                return NUMNODESP2;
    627654                default: _error_("Element type "<<EnumToStringx(this->element_type)<<" not supported yet");
    628655        }
  • issm/trunk-jpl/src/c/classes/IoModel.cpp

    r15611 r15689  
    5757
    5858        /*Initialize data: */
    59         this->data=xNew<IssmDouble*>(MaximumNumberOfEnums);
    60         for(int i=0;i<MaximumNumberOfEnums;i++) this->data[i]=NULL;
     59        this->data=xNew<IssmDouble*>(MaximumNumberOfDefinitionsEnum);
     60        for(int i=0;i<MaximumNumberOfDefinitionsEnum;i++) this->data[i]=NULL;
    6161
    6262        /*If we are running in AD mode, we need to start the trace and declare our independent variables now,
     
    9494        #ifdef _ISSM_DEBUG_
    9595        if(this->data){
    96                 for(int i=0;i<MaximumNumberOfEnums;i++){
     96                for(int i=0;i<MaximumNumberOfDefinitionsEnum;i++){
    9797                        if(this->data[i]){
    9898                                _printf0_("Info: previous pointer of " << EnumToStringx(i) << " has not been freed (DeleteData has not been called)\n");
     
    143143                }
    144144                else{
    145                         if(record_enum!=MaximumNumberOfEnums){
     145                        if(record_enum!=MaximumNumberOfDefinitionsEnum){
    146146                                _printf0_("\n");
    147147                                _printf0_("=========================================================================\n");
     
    215215IssmDouble* IoModel::Data(int data_enum){
    216216
    217         _assert_(data_enum<MaximumNumberOfEnums);
     217        _assert_(data_enum<MaximumNumberOfDefinitionsEnum);
    218218        _assert_(data_enum>=0);
    219219
     
    235235
    236236        /*Initialize array detecting whether data[i] is an independent AD mode variable: */
    237         this->independents=xNew<bool>(MaximumNumberOfEnums);
    238         for(i=0;i<MaximumNumberOfEnums;i++) this->independents[i]=false;
     237        this->independents=xNew<bool>(MaximumNumberOfDefinitionsEnum);
     238        for(i=0;i<MaximumNumberOfDefinitionsEnum;i++) this->independents[i]=false;
    239239
    240240        this->FetchData(&autodiff,AutodiffIsautodiffEnum);
     
    292292        for(i = 0; i <num; i++){
    293293                dataenum=va_arg(ap, int);
    294                 _assert_(dataenum<MaximumNumberOfEnums);
     294                _assert_(dataenum<MaximumNumberOfDefinitionsEnum);
    295295
    296296                /*do not erase independent variables for the AD mode computations!: */
     
    10661066                /*{{{*/
    10671067                #ifdef _ISSM_DEBUG_
    1068                 _assert_(dataenum<MaximumNumberOfEnums);
     1068                _assert_(dataenum<MaximumNumberOfDefinitionsEnum);
    10691069                if(this->data[dataenum]){
    10701070                        _error_("Info: trying to fetch " << EnumToStringx(dataenum) << " but previous pointer has not been freed (DeleteData has not been called)");
     
    10961096
    10971097        /*variables being fetched: */
    1098         bool    boolean;
    1099         int     integer;
     1098        bool        boolean;
     1099        int         integer;
    11001100        IssmDouble  scalar;
    1101         char   *string        = NULL;
    1102         IssmDouble *IssmDoublevector  = NULL;
    1103         int     M,N;
     1101        char       *string           = NULL;
     1102        IssmDouble *IssmDoublevector = NULL;
     1103        int         M,N;
    11041104
    11051105        /*Fetch parameters: */
  • issm/trunk-jpl/src/c/main/kriging.cpp

    r15570 r15689  
    148148        iomodel->fid=fid;
    149149        iomodel->CheckEnumSync();
    150         iomodel->independents=xNew<bool>(MaximumNumberOfEnums); for(int i=0;i<MaximumNumberOfEnums;i++) iomodel->independents[i]=false;
     150        iomodel->independents=xNew<bool>(MaximumNumberOfDefinitionsEnum); for(int i=0;i<MaximumNumberOfDefinitionsEnum;i++) iomodel->independents[i]=false;
    151151        iomodel->FetchData(&x,&M,&N,0);        nobs=M*N;
    152152        iomodel->FetchData(&y,&M,&N,1);        _assert_(M*N==nobs);
  • issm/trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp

    r15654 r15689  
    116116                                                        constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+iomodel->numberofvertices+i+1,
    117117                                                                                        dof,value,analysis_type));
     118                                                        count++;
     119                                                }
     120                                        }
     121                                }
     122                                break;
     123                        case P1bubblecondensedEnum:
     124                                for(i=0;i<iomodel->numberofvertices;i++){
     125                                        if((iomodel->my_vertices[i])){
     126                                                if (!xIsNan<IssmDouble>(spcdata[i])){
     127                                                        constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,dof,spcdata[i],analysis_type));
    118128                                                        count++;
    119129                                                }
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateNodes.cpp

    r15688 r15689  
    4040
    4141                                        }
     42                                }
     43                        }
     44                        break;
     45
     46                case P1bubbleEnum:
     47                        for(i=0;i<iomodel->numberofvertices;i++){
     48                                if(iomodel->my_vertices[i]){
     49                                        nodes->AddObject(new Node(iomodel->nodecounter+i+1,i,i,iomodel,analysis,approximation));
     50                                }
     51                        }
     52                        for(i=0;i<iomodel->numberofelements;i++){
     53                                if(iomodel->my_elements[i]){
     54                                        nodes->AddObject(new Node(iomodel->nodecounter+iomodel->numberofvertices+i+1,iomodel->numberofvertices+i,0,iomodel,analysis,approximation));
     55                                }
     56                        }
     57                        break;
     58
     59                case P1bubblecondensedEnum:
     60                        for(i=0;i<iomodel->numberofvertices;i++){
     61                                if(iomodel->my_vertices[i]){
     62                                        nodes->AddObject(new Node(iomodel->nodecounter+i+1,i,i,iomodel,analysis,approximation));
     63                                }
     64                        }
     65                        for(i=0;i<iomodel->numberofelements;i++){
     66                                if(iomodel->my_elements[i]){
     67                                        node = new Node(iomodel->nodecounter+iomodel->numberofvertices+i+1,iomodel->numberofvertices+i,0,iomodel,analysis,approximation);
     68                                        node->Deactivate();
     69                                        nodes->AddObject(node);
    4270                                }
    4371                        }
  • issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h

    r15654 r15689  
    503503        P1DGEnum,
    504504        P1bubbleEnum,
     505        P1bubblecondensedEnum,
    505506        P2Enum,
    506507        P2xP1Enum,
     
    619620        ArrheniusEnum,
    620621        /*}}}*/
    621         MaximumNumberOfEnums
     622        MaximumNumberOfDefinitionsEnum
    622623};
    623624
  • issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp

    r15654 r15689  
    495495                case P1DGEnum : return "P1DG";
    496496                case P1bubbleEnum : return "P1bubble";
     497                case P1bubblecondensedEnum : return "P1bubblecondensed";
    497498                case P2Enum : return "P2";
    498499                case P2xP1Enum : return "P2xP1";
     
    588589                case PatersonEnum : return "Paterson";
    589590                case ArrheniusEnum : return "Arrhenius";
     591                case MaximumNumberOfDefinitionsEnum : return "MaximumNumberOfDefinitions";
    590592                default : return "unknown";
    591593
  • issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp

    r15654 r15689  
    504504              else if (strcmp(name,"P1DG")==0) return P1DGEnum;
    505505              else if (strcmp(name,"P1bubble")==0) return P1bubbleEnum;
     506              else if (strcmp(name,"P1bubblecondensed")==0) return P1bubblecondensedEnum;
    506507              else if (strcmp(name,"P2")==0) return P2Enum;
    507               else if (strcmp(name,"P2xP1")==0) return P2xP1Enum;
    508508         else stage=5;
    509509   }
    510510   if(stage==5){
    511               if (strcmp(name,"P1xP2")==0) return P1xP2Enum;
     511              if (strcmp(name,"P2xP1")==0) return P2xP1Enum;
     512              else if (strcmp(name,"P1xP2")==0) return P1xP2Enum;
    512513              else if (strcmp(name,"P1P1")==0) return P1P1Enum;
    513514              else if (strcmp(name,"P1P1GLS")==0) return P1P1GLSEnum;
     
    600601              else if (strcmp(name,"Paterson")==0) return PatersonEnum;
    601602              else if (strcmp(name,"Arrhenius")==0) return ArrheniusEnum;
     603              else if (strcmp(name,"MaximumNumberOfDefinitions")==0) return MaximumNumberOfDefinitionsEnum;
    602604         else stage=6;
    603605   }
  • issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh

    r14964 r15689  
    33
    44#Get all lines of EnumDefinitions2.h which hold Enum | remove all commas > put everything in file temp
    5 cat EnumDefinitions.h | grep -e "[0-9]Enum," -e "[a-zA-Z]Enum," | grep -v include | sed -e "s/,/ /g" | awk '{print $1}' > temp
     5cat EnumDefinitions.h | grep -e "[0-9]Enum," -e "[a-zA-Z]Enum," -e "MaximumNumberOfDefinitionsEnum" | grep -v include | sed -e "s/,/ /g" | awk '{print $1}' > temp
    66
    77#Removed existing files
     
    177177
    178178done
    179 #MaximumNumberOfEnums (matlab){{{
    180 cat <<END > $ISSM_DIR/src/m/enum/MaximumNumberOfEnums.m
    181 function macro=MaximumNumberOfEnums()
    182 %$(echo "MaximumNumberOfEnums" | awk {'print toupper($1)'}) - Enum of MaximumNumberOfEnums
    183 %
    184 %   WARNING: DO NOT MODIFY THIS FILE
    185 %            this file has been automatically generated by src/c/shared/Enum/Synchronize.sh
    186 %            Please read src/c/shared/Enum/README for more information
    187 %
    188 %   Usage:
    189 %      macro=MaximumNumberOfEnums()
    190 
    191 macro=$(cat EnumDefinitions.h | grep -e "[0-9]Enum" -e "[a-zA-Z]Enum" | grep -v include \
    192                 | awk '{ printf "%s %s\n", NR-1, $0 }' \
    193                 | grep "MaximumNumberOfEnums" | awk '{print $1}');
    194 END
    195 #}}}
    196 #MaximumNumberOfEnums (python){{{
    197 cat <<END >> $ISSM_DIR/src/m/enum/EnumDefinitions.py
    198 def MaximumNumberOfEnums():
    199         """
    200         $(echo "MaximumNumberOfEnums" | awk {'print toupper($1)'}) - Enum of MaximumNumberOfEnums
    201 
    202         WARNING: DO NOT MODIFY THIS FILE
    203                                 this file has been automatically generated by src/c/shared/Enum/Synchronize.sh
    204                                 Please read src/c/shared/Enum/README for more information
    205 
    206            Usage:
    207               macro=MaximumNumberOfEnums()
    208         """
    209 
    210         return $(cat EnumDefinitions.h | grep -e "[0-9]Enum" -e "[a-zA-Z]Enum" | grep -v include \
    211                 | awk '{ printf "%s %s\n", NR-1, $0 }' \
    212                 | grep "MaximumNumberOfEnums" | awk '{print $1}')
    213 
    214 END
    215 #}}}
    216 
    217179#clean up{{{
    218180rm temp
  • issm/trunk-jpl/src/m/classes/flowequation.m

    r15684 r15689  
    6969                function obj = setdefaultparameters(obj) % {{{
    7070
    71                         %MINI element for FS by default
    72                         obj.fe_FS = 3;
     71                        %MINI condensed element for FS by default
     72                        obj.fe_FS = 2;
    7373                end % }}}
    7474                function md = checkconsistency(obj,md,solution,analyses) % {{{
     
    117117                        fielddisplay(obj,'fe_SSA','Finite Element for SSA  0: Lagrange P1 (linear), 1: Lagrange P2 (quadratic)');
    118118                        fielddisplay(obj,'fe_HO', 'Finite Element for HO   0: P1xP1, 1: P1xP2, 2: P2xP1, 3: P2xP2');
    119                         fielddisplay(obj,'fe_FS', 'Finite Element for FS   0: P1P1 (debugging), 1: P1P1GSL (under dev), 2: MINI condensed (under dev), 3: MINI, 4: P2P1 (Taylor-Hood)');
     119                        fielddisplay(obj,'fe_FS', 'Finite Element for FS   0: P1P1 (debugging), 1: P1P1GSL (under dev), 2: MINI condensed, 3: MINI, 4: P2P1 (Taylor-Hood)');
    120120                        fielddisplay(obj,'vertex_equation','flow equation for each vertex');
    121121                        fielddisplay(obj,'element_equation','flow equation for each element');
  • issm/trunk-jpl/src/m/classes/flowequation.py

    r15684 r15689  
    4444                string="%s\n%s"%(string,fielddisplay(self,'fe_SSA',"Finite Element for SSA   0: Lagrange P1 (linear), 1: Lagrange P2 (quadratic)"))
    4545                string="%s\n%s"%(string,fielddisplay(self,'fe_HO' ,"Finite Element for HO   0: P1xP1, 1: P1xP2, 2: P2xP1, 3: P2xP2"))
    46                 string="%s\n%s"%(string,fielddisplay(self,'fe_FS' ,"Finite Element for FS   0: P1P1 (debugging), 1: P1P1GSL (under dev), 2: MINI condensed (under dev), 3: MINI, 4: P2P1 (Taylor-Hood)"))
     46                string="%s\n%s"%(string,fielddisplay(self,'fe_FS' ,"Finite Element for FS   0: P1P1 (debugging), 1: P1P1GSL (under dev), 2: MINI condensed, 3: MINI, 4: P2P1 (Taylor-Hood)"))
    4747                string="%s\n%s"%(string,fielddisplay(self,'vertex_equation',"flow equation for each vertex"))
    4848                string="%s\n%s"%(string,fielddisplay(self,'element_equation',"flow equation for each element"))
     
    5555
    5656                #MINI element for FS by default
    57                 self.fe_FS=3
     57                self.fe_FS=2
    5858
    5959                return self
  • issm/trunk-jpl/src/m/enum/EnumDefinitions.py

    r15654 r15689  
    67016701        return StringToEnum('P1bubble')[0]
    67026702
     6703def P1bubblecondensedEnum():
     6704        """
     6705        P1BUBBLECONDENSEDENUM - Enum of P1bubblecondensed
     6706
     6707        WARNING: DO NOT MODIFY THIS FILE
     6708                                this file has been automatically generated by src/c/shared/Enum/Synchronize.sh
     6709                                Please read src/c/shared/Enum/README for more information
     6710
     6711           Usage:
     6712              macro=P1bubblecondensedEnum()
     6713        """
     6714
     6715        return StringToEnum('P1bubblecondensed')[0]
     6716
    67036717def P2Enum():
    67046718        """
     
    80038017        return StringToEnum('Arrhenius')[0]
    80048018
    8005 def MaximumNumberOfEnums():
    8006         """
    8007         MAXIMUMNUMBEROFENUMS - Enum of MaximumNumberOfEnums
    8008 
    8009         WARNING: DO NOT MODIFY THIS FILE
    8010                                 this file has been automatically generated by src/c/shared/Enum/Synchronize.sh
    8011                                 Please read src/c/shared/Enum/README for more information
    8012 
    8013            Usage:
    8014               macro=MaximumNumberOfEnums()
    8015         """
    8016 
    8017         return 571
    8018 
     8019def MaximumNumberOfDefinitionsEnum():
     8020        """
     8021        MAXIMUMNUMBEROFDEFINITIONSENUM - Enum of MaximumNumberOfDefinitions
     8022
     8023        WARNING: DO NOT MODIFY THIS FILE
     8024                                this file has been automatically generated by src/c/shared/Enum/Synchronize.sh
     8025                                Please read src/c/shared/Enum/README for more information
     8026
     8027           Usage:
     8028              macro=MaximumNumberOfDefinitionsEnum()
     8029        """
     8030
     8031        return StringToEnum('MaximumNumberOfDefinitions')[0]
     8032
  • issm/trunk-jpl/src/m/solve/marshall.m

    r15131 r15689  
    1717
    1818%First, write MaximumNumberOfEnum to make sure that the Enums are synchronized
    19 WriteData(fid,'enum',MaximumNumberOfEnums(),'data',true,'format','Boolean');
     19WriteData(fid,'enum',MaximumNumberOfDefinitionsEnum(),'data',true,'format','Boolean');
    2020
    2121%Go through all model fields: check that it is a class and call checkconsistency
  • issm/trunk-jpl/src/m/solve/marshall.py

    r15131 r15689  
    2222
    2323        #First, write MaximumNumberOfEnum to make sure that the Enums are synchronized
    24         WriteData(fid,'enum',MaximumNumberOfEnums(),'data',True,'format','Boolean')
     24        WriteData(fid,'enum',MaximumNumberOfDefinitionsEnum(),'data',True,'format','Boolean')
    2525
    2626        #Go through all model fields: check that it is a class and call checkconsistency
Note: See TracChangeset for help on using the changeset viewer.