Changeset 23055
- Timestamp:
- 08/06/18 14:15:13 (7 years ago)
- Location:
- issm/trunk-jpl/src/c/shared/Enum
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Enum/Enum.h
r16367 r23055 7 7 void EnumToStringx(char** string,int enum_in); 8 8 int StringToEnumx(const char* string_in,bool notfounderror=true); 9 bool IsInput(int enum_in); 10 bool IsParam(int enum_in); 9 11 10 12 #endif -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r23053 r23055 449 449 EplHeadSlopeYEnum, 450 450 EsaDeltathicknessEnum, 451 EsaUmotionEnum, 451 452 EsaXmotionEnum, 452 453 EsaYmotionEnum, … … 467 468 GiaLithosphereThicknessEnum, 468 469 GiaMantleViscosityEnum, 470 GiaWEnum, 469 471 GradientEnum, 470 472 GroundinglineHeightEnum, … … 751 753 EsaStrainrateyyEnum, 752 754 EsaTransitionsEnum, 753 EsaUmotionEnum,754 755 ExternalResultEnum, 755 756 ExtrapolationAnalysisEnum, … … 782 783 GiaIvinsAnalysisEnum, 783 784 GiaSolutionEnum, 784 GiaWEnum,785 785 Gradient1Enum, 786 786 Gradient2Enum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r23053 r23055 455 455 case EplHeadSlopeYEnum : return "EplHeadSlopeY"; 456 456 case EsaDeltathicknessEnum : return "EsaDeltathickness"; 457 case EsaUmotionEnum : return "EsaUmotion"; 457 458 case EsaXmotionEnum : return "EsaXmotion"; 458 459 case EsaYmotionEnum : return "EsaYmotion"; … … 473 474 case GiaLithosphereThicknessEnum : return "GiaLithosphereThickness"; 474 475 case GiaMantleViscosityEnum : return "GiaMantleViscosity"; 476 case GiaWEnum : return "GiaW"; 475 477 case GradientEnum : return "Gradient"; 476 478 case GroundinglineHeightEnum : return "GroundinglineHeight"; … … 755 757 case EsaStrainrateyyEnum : return "EsaStrainrateyy"; 756 758 case EsaTransitionsEnum : return "EsaTransitions"; 757 case EsaUmotionEnum : return "EsaUmotion";758 759 case ExternalResultEnum : return "ExternalResult"; 759 760 case ExtrapolationAnalysisEnum : return "ExtrapolationAnalysis"; … … 786 787 case GiaIvinsAnalysisEnum : return "GiaIvinsAnalysis"; 787 788 case GiaSolutionEnum : return "GiaSolution"; 788 case GiaWEnum : return "GiaW";789 789 case Gradient1Enum : return "Gradient1"; 790 790 case Gradient2Enum : return "Gradient2"; … … 1192 1192 *pstring=string; 1193 1193 } 1194 1195 bool IsInput(int enum_in){ 1196 if(enum_in>InputsSTARTEnum && enum_in<InputsENDEnum) return true; 1197 return false; 1198 } 1199 1200 bool IsParam(int enum_in){ 1201 if(enum_in>ParametersSTARTEnum && enum_in<ParametersENDEnum) return true; 1202 return false; 1203 } -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r23053 r23055 464 464 else if (strcmp(name,"EplHeadSlopeY")==0) return EplHeadSlopeYEnum; 465 465 else if (strcmp(name,"EsaDeltathickness")==0) return EsaDeltathicknessEnum; 466 else if (strcmp(name,"EsaUmotion")==0) return EsaUmotionEnum; 466 467 else if (strcmp(name,"EsaXmotion")==0) return EsaXmotionEnum; 467 468 else if (strcmp(name,"EsaYmotion")==0) return EsaYmotionEnum; … … 482 483 else if (strcmp(name,"GiaLithosphereThickness")==0) return GiaLithosphereThicknessEnum; 483 484 else if (strcmp(name,"GiaMantleViscosity")==0) return GiaMantleViscosityEnum; 485 else if (strcmp(name,"GiaW")==0) return GiaWEnum; 484 486 else if (strcmp(name,"Gradient")==0) return GradientEnum; 485 487 else if (strcmp(name,"GroundinglineHeight")==0) return GroundinglineHeightEnum; … … 504 506 else if (strcmp(name,"HydrologyWaterVy")==0) return HydrologyWaterVyEnum; 505 507 else if (strcmp(name,"HydrologyDrainageRate")==0) return HydrologyDrainageRateEnum; 506 else if (strcmp(name,"Ice")==0) return IceEnum;507 else if (strcmp(name,"IceMaskNodeActivation")==0) return IceMaskNodeActivationEnum;508 508 else stage=5; 509 509 } 510 510 if(stage==5){ 511 if (strcmp(name,"Input")==0) return InputEnum; 511 if (strcmp(name,"Ice")==0) return IceEnum; 512 else if (strcmp(name,"IceMaskNodeActivation")==0) return IceMaskNodeActivationEnum; 513 else if (strcmp(name,"Input")==0) return InputEnum; 512 514 else if (strcmp(name,"InversionCostFunctionsCoefficients")==0) return InversionCostFunctionsCoefficientsEnum; 513 515 else if (strcmp(name,"InversionSurfaceObs")==0) return InversionSurfaceObsEnum; … … 627 629 else if (strcmp(name,"StrainRatezz")==0) return StrainRatezzEnum; 628 630 else if (strcmp(name,"StressMaxPrincipal")==0) return StressMaxPrincipalEnum; 629 else if (strcmp(name,"StressTensorxx")==0) return StressTensorxxEnum;630 else if (strcmp(name,"StressTensorxy")==0) return StressTensorxyEnum;631 631 else stage=6; 632 632 } 633 633 if(stage==6){ 634 if (strcmp(name,"StressTensorxz")==0) return StressTensorxzEnum; 634 if (strcmp(name,"StressTensorxx")==0) return StressTensorxxEnum; 635 else if (strcmp(name,"StressTensorxy")==0) return StressTensorxyEnum; 636 else if (strcmp(name,"StressTensorxz")==0) return StressTensorxzEnum; 635 637 else if (strcmp(name,"StressTensoryy")==0) return StressTensoryyEnum; 636 638 else if (strcmp(name,"StressTensoryz")==0) return StressTensoryzEnum; … … 750 752 else if (strcmp(name,"DoubleMatArrayParam")==0) return DoubleMatArrayParamEnum; 751 753 else if (strcmp(name,"DoubleMatExternalResult")==0) return DoubleMatExternalResultEnum; 752 else if (strcmp(name,"DoubleMatParam")==0) return DoubleMatParamEnum;753 else if (strcmp(name,"DoubleParam")==0) return DoubleParamEnum;754 754 else stage=7; 755 755 } 756 756 if(stage==7){ 757 if (strcmp(name,"DoubleVecParam")==0) return DoubleVecParamEnum; 757 if (strcmp(name,"DoubleMatParam")==0) return DoubleMatParamEnum; 758 else if (strcmp(name,"DoubleParam")==0) return DoubleParamEnum; 759 else if (strcmp(name,"DoubleVecParam")==0) return DoubleVecParamEnum; 758 760 else if (strcmp(name,"EffectivePressureStacked")==0) return EffectivePressureStackedEnum; 759 761 else if (strcmp(name,"EffectivePressure")==0) return EffectivePressureEnum; … … 773 775 else if (strcmp(name,"EsaStrainrateyy")==0) return EsaStrainrateyyEnum; 774 776 else if (strcmp(name,"EsaTransitions")==0) return EsaTransitionsEnum; 775 else if (strcmp(name,"EsaUmotion")==0) return EsaUmotionEnum;776 777 else if (strcmp(name,"ExternalResult")==0) return ExternalResultEnum; 777 778 else if (strcmp(name,"ExtrapolationAnalysis")==0) return ExtrapolationAnalysisEnum; … … 804 805 else if (strcmp(name,"GiaIvinsAnalysis")==0) return GiaIvinsAnalysisEnum; 805 806 else if (strcmp(name,"GiaSolution")==0) return GiaSolutionEnum; 806 else if (strcmp(name,"GiaW")==0) return GiaWEnum;807 807 else if (strcmp(name,"Gradient1")==0) return Gradient1Enum; 808 808 else if (strcmp(name,"Gradient2")==0) return Gradient2Enum; -
issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh
r22911 r23055 130 130 *pstring=string; 131 131 } 132 133 bool IsInput(int enum_in){ 134 if(enum_in>InputsSTARTEnum && enum_in<InputsENDEnum) return true; 135 return false; 136 } 137 138 bool IsParam(int enum_in){ 139 if(enum_in>ParametersSTARTEnum && enum_in<ParametersENDEnum) return true; 140 return false; 141 } 132 142 END 133 143 #}}}
Note:
See TracChangeset
for help on using the changeset viewer.