Ignore:
Timestamp:
07/15/14 11:59:29 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: removing useless Dakota Enums, now that we have FemModel::Copy

File:
1 edited

Legend:

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

    r18227 r18246  
    178178              else if (strcmp(name,"InversionVzObs")==0) return InversionVzObsEnum;
    179179              else if (strcmp(name,"MaskIceLevelset")==0) return MaskIceLevelsetEnum;
    180               else if (strcmp(name,"QmuMaskIceLevelset")==0) return QmuMaskIceLevelsetEnum;
    181180              else if (strcmp(name,"MaterialsBeta")==0) return MaterialsBetaEnum;
    182181              else if (strcmp(name,"MaterialsHeatcapacity")==0) return MaterialsHeatcapacityEnum;
     
    191190              else if (strcmp(name,"DamageD")==0) return DamageDEnum;
    192191              else if (strcmp(name,"DamageF")==0) return DamageFEnum;
    193               else if (strcmp(name,"QmuDamageD")==0) return QmuDamageDEnum;
    194192              else if (strcmp(name,"DamageDbar")==0) return DamageDbarEnum;
    195193              else if (strcmp(name,"DamageLaw")==0) return DamageLawEnum;
     
    260258              else if (strcmp(name,"MassFluxSegmentsPresent")==0) return MassFluxSegmentsPresentEnum;
    261259              else if (strcmp(name,"QmuMassFluxSegmentsPresent")==0) return QmuMassFluxSegmentsPresentEnum;
     260              else if (strcmp(name,"QmuNumberofpartitions")==0) return QmuNumberofpartitionsEnum;
     261              else if (strcmp(name,"QmuNumberofresponses")==0) return QmuNumberofresponsesEnum;
    262262         else stage=3;
    263263   }
    264264   if(stage==3){
    265               if (strcmp(name,"QmuNumberofpartitions")==0) return QmuNumberofpartitionsEnum;
    266               else if (strcmp(name,"QmuNumberofresponses")==0) return QmuNumberofresponsesEnum;
    267               else if (strcmp(name,"QmuPartition")==0) return QmuPartitionEnum;
     265              if (strcmp(name,"QmuPartition")==0) return QmuPartitionEnum;
    268266              else if (strcmp(name,"QmuResponsedescriptors")==0) return QmuResponsedescriptorsEnum;
    269267              else if (strcmp(name,"QmuVariabledescriptors")==0) return QmuVariabledescriptorsEnum;
    270               else if (strcmp(name,"QmuMaterialsRheologyB")==0) return QmuMaterialsRheologyBEnum;
    271268              else if (strcmp(name,"RiftsNumrifts")==0) return RiftsNumriftsEnum;
    272269              else if (strcmp(name,"RiftsRiftstruct")==0) return RiftsRiftstructEnum;
     
    383380              else if (strcmp(name,"HydrologyDCInefficientAnalysis")==0) return HydrologyDCInefficientAnalysisEnum;
    384381              else if (strcmp(name,"HydrologyDCEfficientAnalysis")==0) return HydrologyDCEfficientAnalysisEnum;
     382              else if (strcmp(name,"HydrologySolution")==0) return HydrologySolutionEnum;
     383              else if (strcmp(name,"MeltingAnalysis")==0) return MeltingAnalysisEnum;
     384              else if (strcmp(name,"MasstransportAnalysis")==0) return MasstransportAnalysisEnum;
    385385         else stage=4;
    386386   }
    387387   if(stage==4){
    388               if (strcmp(name,"HydrologySolution")==0) return HydrologySolutionEnum;
    389               else if (strcmp(name,"MeltingAnalysis")==0) return MeltingAnalysisEnum;
    390               else if (strcmp(name,"MasstransportAnalysis")==0) return MasstransportAnalysisEnum;
    391               else if (strcmp(name,"MasstransportSolution")==0) return MasstransportSolutionEnum;
     388              if (strcmp(name,"MasstransportSolution")==0) return MasstransportSolutionEnum;
    392389              else if (strcmp(name,"FreeSurfaceBaseAnalysis")==0) return FreeSurfaceBaseAnalysisEnum;
    393390              else if (strcmp(name,"FreeSurfaceTopAnalysis")==0) return FreeSurfaceTopAnalysisEnum;
     
    506503              else if (strcmp(name,"Fill")==0) return FillEnum;
    507504              else if (strcmp(name,"FractionIncrement")==0) return FractionIncrementEnum;
     505              else if (strcmp(name,"Friction")==0) return FrictionEnum;
     506              else if (strcmp(name,"Internal")==0) return InternalEnum;
     507              else if (strcmp(name,"MassFlux")==0) return MassFluxEnum;
    508508         else stage=5;
    509509   }
    510510   if(stage==5){
    511               if (strcmp(name,"Friction")==0) return FrictionEnum;
    512               else if (strcmp(name,"Internal")==0) return InternalEnum;
    513               else if (strcmp(name,"MassFlux")==0) return MassFluxEnum;
    514               else if (strcmp(name,"MeltingOffset")==0) return MeltingOffsetEnum;
     511              if (strcmp(name,"MeltingOffset")==0) return MeltingOffsetEnum;
    515512              else if (strcmp(name,"Misfit")==0) return MisfitEnum;
    516513              else if (strcmp(name,"Pressure")==0) return PressureEnum;
    517514              else if (strcmp(name,"PressurePicard")==0) return PressurePicardEnum;
    518               else if (strcmp(name,"QmuPressure")==0) return QmuPressureEnum;
    519               else if (strcmp(name,"QmuVx")==0) return QmuVxEnum;
    520               else if (strcmp(name,"QmuVy")==0) return QmuVyEnum;
    521               else if (strcmp(name,"QmuVz")==0) return QmuVzEnum;
    522               else if (strcmp(name,"QmuThickness")==0) return QmuThicknessEnum;
    523               else if (strcmp(name,"QmuBase")==0) return QmuBaseEnum;
    524               else if (strcmp(name,"QmuSurface")==0) return QmuSurfaceEnum;
    525               else if (strcmp(name,"QmuMelting")==0) return QmuMeltingEnum;
    526               else if (strcmp(name,"QmuVxMesh")==0) return QmuVxMeshEnum;
    527               else if (strcmp(name,"QmuVyMesh")==0) return QmuVyMeshEnum;
    528               else if (strcmp(name,"QmuVzMesh")==0) return QmuVzMeshEnum;
    529515              else if (strcmp(name,"AndroidFrictionCoefficient")==0) return AndroidFrictionCoefficientEnum;
    530516              else if (strcmp(name,"ResetPenalties")==0) return ResetPenaltiesEnum;
     
    570556              else if (strcmp(name,"BasalFriction")==0) return BasalFrictionEnum;
    571557              else if (strcmp(name,"ViscousHeating")==0) return ViscousHeatingEnum;
    572               else if (strcmp(name,"QmuTemperature")==0) return QmuTemperatureEnum;
    573558              else if (strcmp(name,"HydrologyWaterVx")==0) return HydrologyWaterVxEnum;
    574559              else if (strcmp(name,"HydrologyWaterVy")==0) return HydrologyWaterVyEnum;
     
    629614              else if (strcmp(name,"Step")==0) return StepEnum;
    630615              else if (strcmp(name,"Time")==0) return TimeEnum;
    631          else stage=6;
    632    }
    633    if(stage==6){
    634               if (strcmp(name,"WaterColumnOld")==0) return WaterColumnOldEnum;
     616              else if (strcmp(name,"WaterColumnOld")==0) return WaterColumnOldEnum;
    635617              else if (strcmp(name,"Outputdefinition")==0) return OutputdefinitionEnum;
    636618              else if (strcmp(name,"OutputdefinitionList")==0) return OutputdefinitionListEnum;
     
    647629              else if (strcmp(name,"SurfaceObservation")==0) return SurfaceObservationEnum;
    648630              else if (strcmp(name,"WeightsSurfaceObservation")==0) return WeightsSurfaceObservationEnum;
    649               else if (strcmp(name,"MinVel")==0) return MinVelEnum;
     631         else stage=6;
     632   }
     633   if(stage==6){
     634              if (strcmp(name,"MinVel")==0) return MinVelEnum;
    650635              else if (strcmp(name,"MaxVel")==0) return MaxVelEnum;
    651636              else if (strcmp(name,"MinVx")==0) return MinVxEnum;
     
    675660              else if (strcmp(name,"Contact")==0) return ContactEnum;
    676661              else if (strcmp(name,"MaskGroundediceLevelset")==0) return MaskGroundediceLevelsetEnum;
    677               else if (strcmp(name,"QmuMaskGroundediceLevelset")==0) return QmuMaskGroundediceLevelsetEnum;
    678662              else if (strcmp(name,"GaussSeg")==0) return GaussSegEnum;
    679663              else if (strcmp(name,"GaussTria")==0) return GaussTriaEnum;
Note: See TracChangeset for help on using the changeset viewer.