Changeset 23853
- Timestamp:
- 04/17/19 09:24:02 (6 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Inputs/Inputs.cpp
r22555 r23853 33 33 _assert_(in_input); 34 34 int enum_name = in_input->InstanceEnum(); 35 #ifdef _ISSM_DEBUG_ 36 if(!IsInputEnum(enum_name)) _error_("Enum \""<<EnumToStringx(enum_name)<<"\" is not placed properly in EnumDefinitions.h"); 37 #endif 35 38 36 39 /*Go through current inputs*/ -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r23849 r23853 641 641 SmbHrefEnum, 642 642 SmbIsInitializedEnum, 643 SmbMAddEnum, 643 644 SmbMassBalanceEnum, 644 645 SmbMassBalanceClimateEnum, … … 683 684 SmbZTopEnum, 684 685 SmbZYEnum, 686 SmbDzAddEnum, 687 SmbFACEnum, 688 SmbMeanULWEnum, 689 SmbNetLWEnum, 690 SmbNetSWEnum, 691 SmbMeanLHFEnum, 692 SmbMeanSHFEnum, 685 693 StrainRateeffectiveEnum, 686 694 StrainRateparallelEnum, … … 1133 1141 SMBcomponentsEnum, 1134 1142 SMBd18opddEnum, 1135 SmbDzAddEnum,1136 SmbFACEnum,1137 SmbMeanULWEnum,1138 SmbNetLWEnum,1139 SmbNetSWEnum,1140 SmbMeanLHFEnum,1141 SmbMeanSHFEnum,1142 1143 SMBforcingEnum, 1143 1144 SMBgcmEnum, … … 1146 1147 SMBgradientsEnum, 1147 1148 SMBhenningEnum, 1148 SmbMAddEnum,1149 1149 SMBmeltcomponentsEnum, 1150 1150 SMBpddEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r23849 r23853 647 647 case SmbHrefEnum : return "SmbHref"; 648 648 case SmbIsInitializedEnum : return "SmbIsInitialized"; 649 case SmbMAddEnum : return "SmbMAdd"; 649 650 case SmbMassBalanceEnum : return "SmbMassBalance"; 650 651 case SmbMassBalanceClimateEnum : return "SmbMassBalanceClimate"; … … 689 690 case SmbZTopEnum : return "SmbZTop"; 690 691 case SmbZYEnum : return "SmbZY"; 692 case SmbDzAddEnum : return "SmbDzAdd"; 693 case SmbFACEnum : return "SmbFAC"; 694 case SmbMeanULWEnum : return "SmbMeanULW"; 695 case SmbNetLWEnum : return "SmbNetLW"; 696 case SmbNetSWEnum : return "SmbNetSW"; 697 case SmbMeanLHFEnum : return "SmbMeanLHF"; 698 case SmbMeanSHFEnum : return "SmbMeanSHF"; 691 699 case StrainRateeffectiveEnum : return "StrainRateeffective"; 692 700 case StrainRateparallelEnum : return "StrainRateparallel"; … … 1137 1145 case SMBcomponentsEnum : return "SMBcomponents"; 1138 1146 case SMBd18opddEnum : return "SMBd18opdd"; 1139 case SmbDzAddEnum : return "SmbDzAdd";1140 case SmbFACEnum : return "SmbFAC";1141 case SmbMeanULWEnum : return "SmbMeanULW";1142 case SmbNetLWEnum : return "SmbNetLW";1143 case SmbNetSWEnum : return "SmbNetSW";1144 case SmbMeanLHFEnum : return "SmbMeanLHF";1145 case SmbMeanSHFEnum : return "SmbMeanSHF";1146 1147 case SMBforcingEnum : return "SMBforcing"; 1147 1148 case SMBgcmEnum : return "SMBgcm"; … … 1150 1151 case SMBgradientsEnum : return "SMBgradients"; 1151 1152 case SMBhenningEnum : return "SMBhenning"; 1152 case SmbMAddEnum : return "SmbMAdd";1153 1153 case SMBmeltcomponentsEnum : return "SMBmeltcomponents"; 1154 1154 case SMBpddEnum : return "SMBpdd"; -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r23849 r23853 662 662 else if (strcmp(name,"SmbHref")==0) return SmbHrefEnum; 663 663 else if (strcmp(name,"SmbIsInitialized")==0) return SmbIsInitializedEnum; 664 else if (strcmp(name,"SmbMAdd")==0) return SmbMAddEnum; 664 665 else if (strcmp(name,"SmbMassBalance")==0) return SmbMassBalanceEnum; 665 666 else if (strcmp(name,"SmbMassBalanceClimate")==0) return SmbMassBalanceClimateEnum; … … 704 705 else if (strcmp(name,"SmbZTop")==0) return SmbZTopEnum; 705 706 else if (strcmp(name,"SmbZY")==0) return SmbZYEnum; 707 else if (strcmp(name,"SmbDzAdd")==0) return SmbDzAddEnum; 708 else if (strcmp(name,"SmbFAC")==0) return SmbFACEnum; 709 else if (strcmp(name,"SmbMeanULW")==0) return SmbMeanULWEnum; 710 else if (strcmp(name,"SmbNetLW")==0) return SmbNetLWEnum; 711 else if (strcmp(name,"SmbNetSW")==0) return SmbNetSWEnum; 712 else if (strcmp(name,"SmbMeanLHF")==0) return SmbMeanLHFEnum; 713 else if (strcmp(name,"SmbMeanSHF")==0) return SmbMeanSHFEnum; 706 714 else if (strcmp(name,"StrainRateeffective")==0) return StrainRateeffectiveEnum; 707 715 else if (strcmp(name,"StrainRateparallel")==0) return StrainRateparallelEnum; … … 744 752 else if (strcmp(name,"VxMesh")==0) return VxMeshEnum; 745 753 else if (strcmp(name,"VxObs")==0) return VxObsEnum; 746 else if (strcmp(name,"VyAverage")==0) return VyAverageEnum; 754 else stage=7; 755 } 756 if(stage==7){ 757 if (strcmp(name,"VyAverage")==0) return VyAverageEnum; 747 758 else if (strcmp(name,"Vy")==0) return VyEnum; 748 759 else if (strcmp(name,"VyMesh")==0) return VyMeshEnum; … … 752 763 else if (strcmp(name,"VzHO")==0) return VzHOEnum; 753 764 else if (strcmp(name,"VzMesh")==0) return VzMeshEnum; 754 else stage=7; 755 } 756 if(stage==7){ 757 if (strcmp(name,"VzSSA")==0) return VzSSAEnum; 765 else if (strcmp(name,"VzSSA")==0) return VzSSAEnum; 758 766 else if (strcmp(name,"Watercolumn")==0) return WatercolumnEnum; 759 767 else if (strcmp(name,"WaterColumnOld")==0) return WaterColumnOldEnum; … … 867 875 else if (strcmp(name,"Free")==0) return FreeEnum; 868 876 else if (strcmp(name,"FreeSurfaceBaseAnalysis")==0) return FreeSurfaceBaseAnalysisEnum; 869 else if (strcmp(name,"FreeSurfaceTopAnalysis")==0) return FreeSurfaceTopAnalysisEnum; 877 else stage=8; 878 } 879 if(stage==8){ 880 if (strcmp(name,"FreeSurfaceTopAnalysis")==0) return FreeSurfaceTopAnalysisEnum; 870 881 else if (strcmp(name,"FrontalForcingsDefault")==0) return FrontalForcingsDefaultEnum; 871 882 else if (strcmp(name,"FrontalForcingsRignot")==0) return FrontalForcingsRignotEnum; … … 875 886 else if (strcmp(name,"FSSolver")==0) return FSSolverEnum; 876 887 else if (strcmp(name,"FSvelocity")==0) return FSvelocityEnum; 877 else stage=8; 878 } 879 if(stage==8){ 880 if (strcmp(name,"FullMeltOnPartiallyFloating")==0) return FullMeltOnPartiallyFloatingEnum; 888 else if (strcmp(name,"FullMeltOnPartiallyFloating")==0) return FullMeltOnPartiallyFloatingEnum; 881 889 else if (strcmp(name,"GaussPenta")==0) return GaussPentaEnum; 882 890 else if (strcmp(name,"GaussSeg")==0) return GaussSegEnum; … … 990 998 else if (strcmp(name,"Moulin")==0) return MoulinEnum; 991 999 else if (strcmp(name,"MpiDense")==0) return MpiDenseEnum; 992 else if (strcmp(name,"Mpi")==0) return MpiEnum; 1000 else stage=9; 1001 } 1002 if(stage==9){ 1003 if (strcmp(name,"Mpi")==0) return MpiEnum; 993 1004 else if (strcmp(name,"MpiSparse")==0) return MpiSparseEnum; 994 1005 else if (strcmp(name,"Mumps")==0) return MumpsEnum; … … 998 1009 else if (strcmp(name,"NodeSId")==0) return NodeSIdEnum; 999 1010 else if (strcmp(name,"NoFrictionOnPartiallyFloating")==0) return NoFrictionOnPartiallyFloatingEnum; 1000 else stage=9; 1001 } 1002 if(stage==9){ 1003 if (strcmp(name,"NoMeltOnPartiallyFloating")==0) return NoMeltOnPartiallyFloatingEnum; 1011 else if (strcmp(name,"NoMeltOnPartiallyFloating")==0) return NoMeltOnPartiallyFloatingEnum; 1004 1012 else if (strcmp(name,"NoneApproximation")==0) return NoneApproximationEnum; 1005 1013 else if (strcmp(name,"None")==0) return NoneEnum; … … 1113 1121 else if (strcmp(name,"P1bubblecondensed")==0) return P1bubblecondensedEnum; 1114 1122 else if (strcmp(name,"P1bubble")==0) return P1bubbleEnum; 1115 else if (strcmp(name,"P1DG")==0) return P1DGEnum; 1123 else stage=10; 1124 } 1125 if(stage==10){ 1126 if (strcmp(name,"P1DG")==0) return P1DGEnum; 1116 1127 else if (strcmp(name,"P1P1")==0) return P1P1Enum; 1117 1128 else if (strcmp(name,"P1P1GLS")==0) return P1P1GLSEnum; … … 1121 1132 else if (strcmp(name,"P2bubblecondensed")==0) return P2bubblecondensedEnum; 1122 1133 else if (strcmp(name,"P2bubble")==0) return P2bubbleEnum; 1123 else stage=10; 1124 } 1125 if(stage==10){ 1126 if (strcmp(name,"P2")==0) return P2Enum; 1134 else if (strcmp(name,"P2")==0) return P2Enum; 1127 1135 else if (strcmp(name,"P2xP1")==0) return P2xP1Enum; 1128 1136 else if (strcmp(name,"P2xP4")==0) return P2xP4Enum; … … 1164 1172 else if (strcmp(name,"SMBcomponents")==0) return SMBcomponentsEnum; 1165 1173 else if (strcmp(name,"SMBd18opdd")==0) return SMBd18opddEnum; 1166 else if (strcmp(name,"SmbDzAdd")==0) return SmbDzAddEnum;1167 else if (strcmp(name,"SmbFAC")==0) return SmbFACEnum;1168 else if (strcmp(name,"SmbMeanULW")==0) return SmbMeanULWEnum;1169 else if (strcmp(name,"SmbNetLW")==0) return SmbNetLWEnum;1170 else if (strcmp(name,"SmbNetSW")==0) return SmbNetSWEnum;1171 else if (strcmp(name,"SmbMeanLHF")==0) return SmbMeanLHFEnum;1172 else if (strcmp(name,"SmbMeanSHF")==0) return SmbMeanSHFEnum;1173 1174 else if (strcmp(name,"SMBforcing")==0) return SMBforcingEnum; 1174 1175 else if (strcmp(name,"SMBgcm")==0) return SMBgcmEnum; … … 1177 1178 else if (strcmp(name,"SMBgradients")==0) return SMBgradientsEnum; 1178 1179 else if (strcmp(name,"SMBhenning")==0) return SMBhenningEnum; 1179 else if (strcmp(name,"SmbMAdd")==0) return SmbMAddEnum;1180 1180 else if (strcmp(name,"SMBmeltcomponents")==0) return SMBmeltcomponentsEnum; 1181 1181 else if (strcmp(name,"SMBpdd")==0) return SMBpddEnum;
Note:
See TracChangeset
for help on using the changeset viewer.