Changeset 18812
- Timestamp:
- 11/19/14 14:37:13 (10 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 8 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/IoModel.h
r18807 r18812 86 86 void FetchMultipleData(int*** pmatrices,int** pmdims,int** pndims, int* pnumrecords,int data_enum); 87 87 void FetchMultipleData(int** pvector, int* pnum_instances,int data_enum); 88 void FetchMultipleData(IssmDouble** pvector, int* pnum_instances,int data_enum); 88 89 void FetchData(Option **poption,int data_enum); 89 90 void FetchData(int num,...); -
issm/trunk-jpl/src/c/classes/classes.h
r18786 r18812 20 20 #include "./Misfit.h" 21 21 #include "./Masscon.h" 22 #include "./Massconaxpby.h" 22 23 23 24 /*Constraints: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateOutputDefinitions.cpp
r18786 r18812 148 148 /*}}}*/ 149 149 } 150 else if (output_definition_enums[i]==MassconaxpbyEnum){ 151 /*Deal with masscon combinations: {{{*/ 152 153 /*masscon variables: */ 154 char** masscon_name_s = NULL; 155 char** masscon_namex_s = NULL; 156 char** masscon_namey_s = NULL; 157 IssmDouble* masscon_alpha_s = NULL; 158 IssmDouble* masscon_beta_s = NULL; 159 int num; 160 161 /*Fetch names and multiplicators, etc ... (see src/m/classes/masscon_axpby.m): */ 162 iomodel->FetchMultipleData(&masscon_name_s,&num,MassconaxpbyNameEnum); 163 iomodel->FetchMultipleData(&masscon_namex_s,&num,MassconaxpbyNamexEnum); 164 iomodel->FetchMultipleData(&masscon_namey_s,&num,MassconaxpbyNameyEnum); 165 iomodel->FetchMultipleData(&masscon_alpha_s,&num,MassconaxpbyAlphaEnum); 166 iomodel->FetchMultipleData(&masscon_beta_s,&num,MassconaxpbyBetaEnum); 167 for(j=0;j<num;j++){ 168 169 /*Create a masscon axpyb object: */ 170 output_definitions->AddObject(new Massconaxpby(masscon_name_s[j],masscon_namex_s[j],masscon_namey_s[j],masscon_alpha_s[j],masscon_beta_s[j])); 171 172 } 173 174 /*Free ressources:*/ 175 for(j=0;j<num;j++){ 176 char* string=NULL; 177 string = masscon_name_s[j]; xDelete<char>(string); 178 string = masscon_namex_s[j]; xDelete<char>(string); 179 string = masscon_namey_s[j]; xDelete<char>(string); 180 } 181 xDelete<char*>(masscon_name_s); 182 xDelete<char*>(masscon_namex_s); 183 xDelete<char*>(masscon_namey_s); 184 xDelete<IssmDouble>(masscon_alpha_s); 185 xDelete<IssmDouble>(masscon_beta_s); 186 /*}}}*/ 187 } 150 188 else _error_("output definition enum " << output_definition_enums[i] << "not supported yet!"); 151 189 } -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r18786 r18812 494 494 MassconNameEnum, 495 495 MassconLevelsetEnum, 496 MassconaxpbyEnum, 497 MassconaxpbyNameEnum, 498 MassconaxpbyNamexEnum, 499 MassconaxpbyNameyEnum, 500 MassconaxpbyAlphaEnum, 501 MassconaxpbyBetaEnum, 496 502 NodeSIdEnum, 497 503 VectorParamEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r18786 r18812 491 491 case MassconNameEnum : return "MassconName"; 492 492 case MassconLevelsetEnum : return "MassconLevelset"; 493 case MassconaxpbyEnum : return "Massconaxpby"; 494 case MassconaxpbyNameEnum : return "MassconaxpbyName"; 495 case MassconaxpbyNamexEnum : return "MassconaxpbyNamex"; 496 case MassconaxpbyNameyEnum : return "MassconaxpbyNamey"; 497 case MassconaxpbyAlphaEnum : return "MassconaxpbyAlpha"; 498 case MassconaxpbyBetaEnum : return "MassconaxpbyBeta"; 493 499 case NodeSIdEnum : return "NodeSId"; 494 500 case VectorParamEnum : return "VectorParam"; -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r18786 r18812 500 500 else if (strcmp(name,"MassconName")==0) return MassconNameEnum; 501 501 else if (strcmp(name,"MassconLevelset")==0) return MassconLevelsetEnum; 502 else if (strcmp(name,"NodeSId")==0) return NodeSIdEnum; 502 else if (strcmp(name,"Massconaxpby")==0) return MassconaxpbyEnum; 503 else if (strcmp(name,"MassconaxpbyName")==0) return MassconaxpbyNameEnum; 504 else if (strcmp(name,"MassconaxpbyNamex")==0) return MassconaxpbyNamexEnum; 505 else if (strcmp(name,"MassconaxpbyNamey")==0) return MassconaxpbyNameyEnum; 506 else if (strcmp(name,"MassconaxpbyAlpha")==0) return MassconaxpbyAlphaEnum; 507 else if (strcmp(name,"MassconaxpbyBeta")==0) return MassconaxpbyBetaEnum; 508 else stage=5; 509 } 510 if(stage==5){ 511 if (strcmp(name,"NodeSId")==0) return NodeSIdEnum; 503 512 else if (strcmp(name,"VectorParam")==0) return VectorParamEnum; 504 513 else if (strcmp(name,"Riftfront")==0) return RiftfrontEnum; … … 506 515 else if (strcmp(name,"Segment")==0) return SegmentEnum; 507 516 else if (strcmp(name,"SegmentRiftfront")==0) return SegmentRiftfrontEnum; 508 else stage=5; 509 } 510 if(stage==5){ 511 if (strcmp(name,"SpcDynamic")==0) return SpcDynamicEnum; 517 else if (strcmp(name,"SpcDynamic")==0) return SpcDynamicEnum; 512 518 else if (strcmp(name,"SpcStatic")==0) return SpcStaticEnum; 513 519 else if (strcmp(name,"SpcTransient")==0) return SpcTransientEnum; … … 623 629 else if (strcmp(name,"Divergence")==0) return DivergenceEnum; 624 630 else if (strcmp(name,"MaxDivergence")==0) return MaxDivergenceEnum; 625 else if (strcmp(name,"GiaCrossSectionShape")==0) return GiaCrossSectionShapeEnum; 631 else stage=6; 632 } 633 if(stage==6){ 634 if (strcmp(name,"GiaCrossSectionShape")==0) return GiaCrossSectionShapeEnum; 626 635 else if (strcmp(name,"GiadWdt")==0) return GiadWdtEnum; 627 636 else if (strcmp(name,"GiaW")==0) return GiaWEnum; … … 629 638 else if (strcmp(name,"P1")==0) return P1Enum; 630 639 else if (strcmp(name,"P1DG")==0) return P1DGEnum; 631 else stage=6; 632 } 633 if(stage==6){ 634 if (strcmp(name,"P1bubble")==0) return P1bubbleEnum; 640 else if (strcmp(name,"P1bubble")==0) return P1bubbleEnum; 635 641 else if (strcmp(name,"P1bubblecondensed")==0) return P1bubblecondensedEnum; 636 642 else if (strcmp(name,"P2")==0) return P2Enum; … … 746 752 else if (strcmp(name,"Seq")==0) return SeqEnum; 747 753 else if (strcmp(name,"Mpi")==0) return MpiEnum; 748 else if (strcmp(name,"Mumps")==0) return MumpsEnum; 754 else stage=7; 755 } 756 if(stage==7){ 757 if (strcmp(name,"Mumps")==0) return MumpsEnum; 749 758 else if (strcmp(name,"Gsl")==0) return GslEnum; 750 759 else if (strcmp(name,"Option")==0) return OptionEnum; … … 752 761 else if (strcmp(name,"OptionCell")==0) return OptionCellEnum; 753 762 else if (strcmp(name,"OptionStruct")==0) return OptionStructEnum; 754 else stage=7; 755 } 756 if(stage==7){ 757 if (strcmp(name,"Cuffey")==0) return CuffeyEnum; 763 else if (strcmp(name,"Cuffey")==0) return CuffeyEnum; 758 764 else if (strcmp(name,"Paterson")==0) return PatersonEnum; 759 765 else if (strcmp(name,"Arrhenius")==0) return ArrheniusEnum; -
issm/trunk-jpl/src/m/enum/EnumDefinitions.py
r18786 r18812 483 483 def MassconNameEnum(): return StringToEnum("MassconName")[0] 484 484 def MassconLevelsetEnum(): return StringToEnum("MassconLevelset")[0] 485 def MassconaxpbyEnum(): return StringToEnum("Massconaxpby")[0] 486 def MassconaxpbyNameEnum(): return StringToEnum("MassconaxpbyName")[0] 487 def MassconaxpbyNamexEnum(): return StringToEnum("MassconaxpbyNamex")[0] 488 def MassconaxpbyNameyEnum(): return StringToEnum("MassconaxpbyNamey")[0] 489 def MassconaxpbyAlphaEnum(): return StringToEnum("MassconaxpbyAlpha")[0] 490 def MassconaxpbyBetaEnum(): return StringToEnum("MassconaxpbyBeta")[0] 485 491 def NodeSIdEnum(): return StringToEnum("NodeSId")[0] 486 492 def VectorParamEnum(): return StringToEnum("VectorParam")[0]
Note:
See TracChangeset
for help on using the changeset viewer.