Changeset 22468


Ignore:
Timestamp:
02/26/18 10:31:32 (7 years ago)
Author:
tpelle
Message:

NEW: Added enums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp

    r22463 r22468  
    8989              else if (strcmp(name,"MismipFloatingMeltRate")==0) return MismipFloatingMeltRateEnum;
    9090              else if (strcmp(name,"MantlePlumeGeothermalFlux")==0) return MantlePlumeGeothermalFluxEnum;
     91              else if (strcmp(name,"BasalforcingsPico")==0) return BasalforcingsPicoEnum;
     92              else if (strcmp(name,"BasalforcingsPicoNumBasins")==0) return BasalforcingsPicoNumBasinsEnum;
     93              else if (strcmp(name,"BasalforcingsPicoBasinId")==0) return BasalforcingsPicoBasinIdEnum;
     94              else if (strcmp(name,"BasalforcingsPicoMaxboxcount")==0) return BasalforcingsPicoMaxboxcountEnum;
     95              else if (strcmp(name,"BasalforcingsPicoOverturningCoeff")==0) return BasalforcingsPicoOverturningCoeffEnum;
     96              else if (strcmp(name,"BasalforcingsPicoGammaT")==0) return BasalforcingsPicoGammaTEnum;
     97              else if (strcmp(name,"BasalforcingsPicoBox0temperature")==0) return BasalforcingsPicoBox0temperatureEnum;
     98              else if (strcmp(name,"BasalforcingsPicoBox0salinity")==0) return BasalforcingsPicoBox0salinityEnum;
    9199              else if (strcmp(name,"Bed")==0) return BedEnum;
    92100              else if (strcmp(name,"Base")==0) return BaseEnum;
     
    129137              else if (strcmp(name,"FrictionGamma")==0) return FrictionGammaEnum;
    130138              else if (strcmp(name,"FrictionF")==0) return FrictionFEnum;
    131               else if (strcmp(name,"FrictionWaterLayer")==0) return FrictionWaterLayerEnum;
     139         else stage=2;
     140   }
     141   if(stage==2){
     142              if (strcmp(name,"FrictionWaterLayer")==0) return FrictionWaterLayerEnum;
    132143              else if (strcmp(name,"FrictionEffectivePressure")==0) return FrictionEffectivePressureEnum;
    133144              else if (strcmp(name,"FrictionCoupling")==0) return FrictionCouplingEnum;
     
    137148              else if (strcmp(name,"HydrologyRequestedOutputs")==0) return HydrologyRequestedOutputsEnum;
    138149              else if (strcmp(name,"Hydrologyshreve")==0) return HydrologyshreveEnum;
    139          else stage=2;
    140    }
    141    if(stage==2){
    142               if (strcmp(name,"HydrologyshreveStabilization")==0) return HydrologyshreveStabilizationEnum;
     150              else if (strcmp(name,"HydrologyshreveStabilization")==0) return HydrologyshreveStabilizationEnum;
    143151              else if (strcmp(name,"Hydrologydc")==0) return HydrologydcEnum;
    144152              else if (strcmp(name,"Hydrologydt")==0) return HydrologydtEnum;
     
    252260              else if (strcmp(name,"MaterialsRheologyEsbar")==0) return MaterialsRheologyEsbarEnum;
    253261              else if (strcmp(name,"DamageD")==0) return DamageDEnum;
    254               else if (strcmp(name,"DamageF")==0) return DamageFEnum;
     262         else stage=3;
     263   }
     264   if(stage==3){
     265              if (strcmp(name,"DamageF")==0) return DamageFEnum;
    255266              else if (strcmp(name,"DamageDbar")==0) return DamageDbarEnum;
    256267              else if (strcmp(name,"DamageLaw")==0) return DamageLawEnum;
     
    260271              else if (strcmp(name,"DamageC4")==0) return DamageC4Enum;
    261272              else if (strcmp(name,"DamageElementinterp")==0) return DamageElementinterpEnum;
    262          else stage=3;
    263    }
    264    if(stage==3){
    265               if (strcmp(name,"DamageHealing")==0) return DamageHealingEnum;
     273              else if (strcmp(name,"DamageHealing")==0) return DamageHealingEnum;
    266274              else if (strcmp(name,"DamageStressThreshold")==0) return DamageStressThresholdEnum;
    267275              else if (strcmp(name,"DamageKappa")==0) return DamageKappaEnum;
     
    375383              else if (strcmp(name,"ThermalPenaltyFactor")==0) return ThermalPenaltyFactorEnum;
    376384              else if (strcmp(name,"ThermalPenaltyLock")==0) return ThermalPenaltyLockEnum;
    377               else if (strcmp(name,"ThermalPenaltyThreshold")==0) return ThermalPenaltyThresholdEnum;
     385         else stage=4;
     386   }
     387   if(stage==4){
     388              if (strcmp(name,"ThermalPenaltyThreshold")==0) return ThermalPenaltyThresholdEnum;
    378389              else if (strcmp(name,"ThermalSpctemperature")==0) return ThermalSpctemperatureEnum;
    379390              else if (strcmp(name,"ThermalStabilization")==0) return ThermalStabilizationEnum;
     
    383394              else if (strcmp(name,"GiaLithosphereThickness")==0) return GiaLithosphereThicknessEnum;
    384395              else if (strcmp(name,"Thickness")==0) return ThicknessEnum;
    385          else stage=4;
    386    }
    387    if(stage==4){
    388               if (strcmp(name,"TimesteppingStartTime")==0) return TimesteppingStartTimeEnum;
     396              else if (strcmp(name,"TimesteppingStartTime")==0) return TimesteppingStartTimeEnum;
    389397              else if (strcmp(name,"TimesteppingFinalTime")==0) return TimesteppingFinalTimeEnum;
    390398              else if (strcmp(name,"TimesteppingCflCoefficient")==0) return TimesteppingCflCoefficientEnum;
     
    504512              else if (strcmp(name,"SmbPfac")==0) return SmbPfacEnum;
    505513              else if (strcmp(name,"SmbTdiff")==0) return SmbTdiffEnum;
    506               else if (strcmp(name,"SmbSealev")==0) return SmbSealevEnum;
     514         else stage=5;
     515   }
     516   if(stage==5){
     517              if (strcmp(name,"SmbSealev")==0) return SmbSealevEnum;
    507518              else if (strcmp(name,"SMBd18opdd")==0) return SMBd18opddEnum;
    508519         else stage=5;
     
    627638              else if (strcmp(name,"MaxDivergence")==0) return MaxDivergenceEnum;
    628639              else if (strcmp(name,"GiaCrossSectionShape")==0) return GiaCrossSectionShapeEnum;
    629               else if (strcmp(name,"GiadWdt")==0) return GiadWdtEnum;
     640         else stage=6;
     641   }
     642   if(stage==6){
     643              if (strcmp(name,"GiadWdt")==0) return GiadWdtEnum;
    630644              else if (strcmp(name,"GiaW")==0) return GiaWEnum;
    631645         else stage=6;
     
    750764              else if (strcmp(name,"Nodalvalue")==0) return NodalvalueEnum;
    751765              else if (strcmp(name,"Regionaloutput")==0) return RegionaloutputEnum;
    752               else if (strcmp(name,"VxObs")==0) return VxObsEnum;
     766         else stage=7;
     767   }
     768   if(stage==7){
     769              if (strcmp(name,"VxObs")==0) return VxObsEnum;
    753770              else if (strcmp(name,"VyObs")==0) return VyObsEnum;
    754771         else stage=7;
     
    873890              else if (strcmp(name,"LoveLi")==0) return LoveLiEnum;
    874891              else if (strcmp(name,"LoveKernels")==0) return LoveKernelsEnum;
    875               else if (strcmp(name,"LoveKernelsReal")==0) return LoveKernelsRealEnum;
     892         else stage=8;
     893   }
     894   if(stage==8){
     895              if (strcmp(name,"LoveKernelsReal")==0) return LoveKernelsRealEnum;
    876896              else if (strcmp(name,"LoveKernelsImag")==0) return LoveKernelsImagEnum;
    877897         else stage=8;
     
    947967              else if (strcmp(name,"IntVecParam")==0) return IntVecParamEnum;
    948968              else if (strcmp(name,"TransientParam")==0) return TransientParamEnum;
     969              else if (strcmp(name,"TransientArrayParam")==0) return TransientArrayParamEnum;
    949970              else if (strcmp(name,"Matice")==0) return MaticeEnum;
    950971              else if (strcmp(name,"Matlitho")==0) return MatlithoEnum;
     
    9951016              else if (strcmp(name,"BalancethicknessSolution")==0) return BalancethicknessSolutionEnum;
    9961017              else if (strcmp(name,"Balancethickness2Analysis")==0) return Balancethickness2AnalysisEnum;
    997               else if (strcmp(name,"Balancethickness2Solution")==0) return Balancethickness2SolutionEnum;
     1018         else stage=9;
     1019   }
     1020   if(stage==9){
     1021              if (strcmp(name,"Balancethickness2Solution")==0) return Balancethickness2SolutionEnum;
    9981022              else if (strcmp(name,"BalancethicknessSoftAnalysis")==0) return BalancethicknessSoftAnalysisEnum;
    9991023              else if (strcmp(name,"BalancethicknessSoftSolution")==0) return BalancethicknessSoftSolutionEnum;
     
    11181142              else if (strcmp(name,"Air")==0) return AirEnum;
    11191143              else if (strcmp(name,"Ice")==0) return IceEnum;
    1120               else if (strcmp(name,"Melange")==0) return MelangeEnum;
     1144         else stage=10;
     1145   }
     1146   if(stage==10){
     1147              if (strcmp(name,"Melange")==0) return MelangeEnum;
    11211148              else if (strcmp(name,"Water")==0) return WaterEnum;
    11221149              else if (strcmp(name,"DataSet")==0) return DataSetEnum;
Note: See TracChangeset for help on using the changeset viewer.