Changeset 16560 for issm/trunk/src/c/shared/Enum/StringToEnumx.cpp
- Timestamp:
- 10/28/13 14:43:03 (11 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 16138-16453,16455-16554
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c/shared/Enum/StringToEnumx.cpp
r16137 r16560 12 12 #include "../Exceptions/exceptions.h" 13 13 14 int StringToEnumx(const char* name ){14 int StringToEnumx(const char* name,bool notfounderror){ 15 15 16 16 int stage=1; … … 37 37 else if (strcmp(name,"AutodiffMassFluxSegmentsPresent")==0) return AutodiffMassFluxSegmentsPresentEnum; 38 38 else if (strcmp(name,"AutodiffKeep")==0) return AutodiffKeepEnum; 39 else if (strcmp(name,"AutodiffObufsize")==0) return AutodiffObufsizeEnum; 40 else if (strcmp(name,"AutodiffLbufsize")==0) return AutodiffLbufsizeEnum; 41 else if (strcmp(name,"AutodiffCbufsize")==0) return AutodiffCbufsizeEnum; 42 else if (strcmp(name,"AutodiffTbufsize")==0) return AutodiffTbufsizeEnum; 43 else if (strcmp(name,"AutodiffGcTriggerRatio")==0) return AutodiffGcTriggerRatioEnum; 44 else if (strcmp(name,"AutodiffGcTriggerMaxSize")==0) return AutodiffGcTriggerMaxSizeEnum; 39 45 else if (strcmp(name,"BalancethicknessSpcthickness")==0) return BalancethicknessSpcthicknessEnum; 40 46 else if (strcmp(name,"BalancethicknessStabilization")==0) return BalancethicknessStabilizationEnum; … … 50 56 else if (strcmp(name,"DependentObject")==0) return DependentObjectEnum; 51 57 else if (strcmp(name,"StressbalanceAbstol")==0) return StressbalanceAbstolEnum; 52 else if (strcmp(name,"StressbalanceIcefront")==0) return StressbalanceIcefrontEnum;53 58 else if (strcmp(name,"StressbalanceIsnewton")==0) return StressbalanceIsnewtonEnum; 54 59 else if (strcmp(name,"StressbalanceMaxiter")==0) return StressbalanceMaxiterEnum; 55 else if (strcmp(name,"StressbalanceNumRequestedOutputs")==0) return StressbalanceNumRequestedOutputsEnum;56 60 else if (strcmp(name,"StressbalancePenaltyFactor")==0) return StressbalancePenaltyFactorEnum; 57 61 else if (strcmp(name,"StressbalanceReferential")==0) return StressbalanceReferentialEnum; 58 62 else if (strcmp(name,"StressbalanceReltol")==0) return StressbalanceReltolEnum; 63 else if (strcmp(name,"StressbalanceNumRequestedOutputs")==0) return StressbalanceNumRequestedOutputsEnum; 59 64 else if (strcmp(name,"StressbalanceRequestedOutputs")==0) return StressbalanceRequestedOutputsEnum; 60 65 else if (strcmp(name,"StressbalanceRestol")==0) return StressbalanceRestolEnum; … … 126 131 else if (strcmp(name,"HydrologyEfficient")==0) return HydrologyEfficientEnum; 127 132 else if (strcmp(name,"HydrologySedimentKmax")==0) return HydrologySedimentKmaxEnum; 128 else if (strcmp(name,"BasisIntegral")==0) return BasisIntegralEnum;129 133 else if (strcmp(name,"WaterTransfer")==0) return WaterTransferEnum; 130 134 else if (strcmp(name,"IndependentObject")==0) return IndependentObjectEnum; … … 133 137 else if (strcmp(name,"InversionCostFunctionsCoefficients")==0) return InversionCostFunctionsCoefficientsEnum; 134 138 else if (strcmp(name,"InversionCostFunctions")==0) return InversionCostFunctionsEnum; 135 else if (strcmp(name,"InversionGradientOnly")==0) return InversionGradientOnlyEnum;136 else if (strcmp(name,"InversionGradientScaling")==0) return InversionGradientScalingEnum;137 else if (strcmp(name,"InversionIscontrol")==0) return InversionIscontrolEnum;138 else if (strcmp(name,"InversionTao")==0) return InversionTaoEnum;139 139 else stage=2; 140 140 } 141 141 if(stage==2){ 142 if (strcmp(name,"InversionIncompleteAdjoint")==0) return InversionIncompleteAdjointEnum; 142 if (strcmp(name,"InversionGradientScaling")==0) return InversionGradientScalingEnum; 143 else if (strcmp(name,"InversionIscontrol")==0) return InversionIscontrolEnum; 144 else if (strcmp(name,"InversionTao")==0) return InversionTaoEnum; 145 else if (strcmp(name,"InversionIncompleteAdjoint")==0) return InversionIncompleteAdjointEnum; 143 146 else if (strcmp(name,"InversionMaxParameters")==0) return InversionMaxParametersEnum; 144 147 else if (strcmp(name,"InversionMaxiterPerStep")==0) return InversionMaxiterPerStepEnum; … … 149 152 else if (strcmp(name,"InversionStepThreshold")==0) return InversionStepThresholdEnum; 150 153 else if (strcmp(name,"InversionThicknessObs")==0) return InversionThicknessObsEnum; 151 else if (strcmp(name,"InversionVelObs")==0) return InversionVelObsEnum;152 154 else if (strcmp(name,"InversionVxObs")==0) return InversionVxObsEnum; 153 155 else if (strcmp(name,"InversionVyObs")==0) return InversionVyObsEnum; 154 156 else if (strcmp(name,"InversionVzObs")==0) return InversionVzObsEnum; 155 157 else if (strcmp(name,"MaskIceLevelset")==0) return MaskIceLevelsetEnum; 158 else if (strcmp(name,"QmuMaskIceLevelset")==0) return QmuMaskIceLevelsetEnum; 156 159 else if (strcmp(name,"MaterialsBeta")==0) return MaterialsBetaEnum; 157 160 else if (strcmp(name,"MaterialsHeatcapacity")==0) return MaterialsHeatcapacityEnum; … … 163 166 else if (strcmp(name,"MaterialsRheologyLaw")==0) return MaterialsRheologyLawEnum; 164 167 else if (strcmp(name,"MaterialsRheologyN")==0) return MaterialsRheologyNEnum; 165 else if (strcmp(name,"MaterialsRheologyZ")==0) return MaterialsRheologyZEnum; 166 else if (strcmp(name,"MaterialsRheologyZbar")==0) return MaterialsRheologyZbarEnum; 168 else if (strcmp(name,"DamageD")==0) return DamageDEnum; 169 else if (strcmp(name,"QmuDamageD")==0) return QmuDamageDEnum; 170 else if (strcmp(name,"DamageDbar")==0) return DamageDbarEnum; 171 else if (strcmp(name,"DamageLaw")==0) return DamageLawEnum; 172 else if (strcmp(name,"DamageC1")==0) return DamageC1Enum; 173 else if (strcmp(name,"DamageC2")==0) return DamageC2Enum; 174 else if (strcmp(name,"DamageC3")==0) return DamageC3Enum; 175 else if (strcmp(name,"DamageC4")==0) return DamageC4Enum; 176 else if (strcmp(name,"DamageHealing")==0) return DamageHealingEnum; 177 else if (strcmp(name,"DamageStressThreshold")==0) return DamageStressThresholdEnum; 178 else if (strcmp(name,"DamageStabilization")==0) return DamageStabilizationEnum; 179 else if (strcmp(name,"DamagePenaltyThreshold")==0) return DamagePenaltyThresholdEnum; 180 else if (strcmp(name,"DamagePenaltyLock")==0) return DamagePenaltyLockEnum; 181 else if (strcmp(name,"DamagePenaltyFactor")==0) return DamagePenaltyFactorEnum; 182 else if (strcmp(name,"DamageMaxiter")==0) return DamageMaxiterEnum; 183 else if (strcmp(name,"DamageSpcdamage")==0) return DamageSpcdamageEnum; 184 else if (strcmp(name,"DamageMaxDamage")==0) return DamageMaxDamageEnum; 167 185 else if (strcmp(name,"MaterialsRhoIce")==0) return MaterialsRhoIceEnum; 168 186 else if (strcmp(name,"MaterialsRhoWater")==0) return MaterialsRhoWaterEnum; … … 176 194 else if (strcmp(name,"MaterialsMantleDensity")==0) return MaterialsMantleDensityEnum; 177 195 else if (strcmp(name,"MeshAverageVertexConnectivity")==0) return MeshAverageVertexConnectivityEnum; 178 else if (strcmp(name,"MeshDimension")==0) return MeshDimensionEnum;179 196 else if (strcmp(name,"MeshElementonbed")==0) return MeshElementonbedEnum; 180 197 else if (strcmp(name,"MeshElementonsurface")==0) return MeshElementonsurfaceEnum; … … 193 210 else if (strcmp(name,"MeshY")==0) return MeshYEnum; 194 211 else if (strcmp(name,"MeshZ")==0) return MeshZEnum; 212 else if (strcmp(name,"MeshType")==0) return MeshTypeEnum; 213 else if (strcmp(name,"Mesh2Dhorizontal")==0) return Mesh2DhorizontalEnum; 214 else if (strcmp(name,"Mesh2Dvertical")==0) return Mesh2DverticalEnum; 215 else if (strcmp(name,"Mesh3D")==0) return Mesh3DEnum; 195 216 else if (strcmp(name,"MiscellaneousName")==0) return MiscellaneousNameEnum; 196 217 else if (strcmp(name,"MasstransportHydrostaticAdjustment")==0) return MasstransportHydrostaticAdjustmentEnum; … … 218 239 else if (strcmp(name,"SettingsLowmem")==0) return SettingsLowmemEnum; 219 240 else if (strcmp(name,"SettingsOutputFrequency")==0) return SettingsOutputFrequencyEnum; 220 else if (strcmp(name,"SettingsResultsAsPatches")==0) return SettingsResultsAsPatchesEnum;221 241 else if (strcmp(name,"SettingsWaitonlock")==0) return SettingsWaitonlockEnum; 222 242 else if (strcmp(name,"SurfaceforcingsDelta18o")==0) return SurfaceforcingsDelta18oEnum; … … 240 260 else if (strcmp(name,"SurfaceforcingsIspdd")==0) return SurfaceforcingsIspddEnum; 241 261 else if (strcmp(name,"SurfaceforcingsDesfac")==0) return SurfaceforcingsDesfacEnum; 242 else if (strcmp(name,"SurfaceforcingsS0p")==0) return SurfaceforcingsS0pEnum; 262 else stage=3; 263 } 264 if(stage==3){ 265 if (strcmp(name,"SurfaceforcingsS0p")==0) return SurfaceforcingsS0pEnum; 243 266 else if (strcmp(name,"SurfaceforcingsIssmbgradients")==0) return SurfaceforcingsIssmbgradientsEnum; 244 267 else if (strcmp(name,"SurfaceforcingsMonthlytemperatures")==0) return SurfaceforcingsMonthlytemperaturesEnum; … … 255 278 else if (strcmp(name,"ThermalSpctemperature")==0) return ThermalSpctemperatureEnum; 256 279 else if (strcmp(name,"ThermalStabilization")==0) return ThermalStabilizationEnum; 280 else if (strcmp(name,"ThermalNumRequestedOutputs")==0) return ThermalNumRequestedOutputsEnum; 281 else if (strcmp(name,"ThermalRequestedOutputs")==0) return ThermalRequestedOutputsEnum; 257 282 else if (strcmp(name,"GiaMantleViscosity")==0) return GiaMantleViscosityEnum; 258 283 else if (strcmp(name,"GiaLithosphereThickness")==0) return GiaLithosphereThicknessEnum; … … 260 285 else if (strcmp(name,"TimesteppingStartTime")==0) return TimesteppingStartTimeEnum; 261 286 else if (strcmp(name,"TimesteppingFinalTime")==0) return TimesteppingFinalTimeEnum; 262 else stage=3; 263 } 264 if(stage==3){ 265 if (strcmp(name,"TimesteppingCflCoefficient")==0) return TimesteppingCflCoefficientEnum; 287 else if (strcmp(name,"TimesteppingCflCoefficient")==0) return TimesteppingCflCoefficientEnum; 266 288 else if (strcmp(name,"TimesteppingTimeAdapt")==0) return TimesteppingTimeAdaptEnum; 267 289 else if (strcmp(name,"TimesteppingTimeStep")==0) return TimesteppingTimeStepEnum; … … 271 293 else if (strcmp(name,"TransientIsthermal")==0) return TransientIsthermalEnum; 272 294 else if (strcmp(name,"TransientIsgia")==0) return TransientIsgiaEnum; 295 else if (strcmp(name,"TransientIsdamage")==0) return TransientIsdamageEnum; 273 296 else if (strcmp(name,"TransientNumRequestedOutputs")==0) return TransientNumRequestedOutputsEnum; 274 297 else if (strcmp(name,"TransientRequestedOutputs")==0) return TransientRequestedOutputsEnum; … … 278 301 else if (strcmp(name,"AdjointBalancethicknessAnalysis")==0) return AdjointBalancethicknessAnalysisEnum; 279 302 else if (strcmp(name,"AdjointHorizAnalysis")==0) return AdjointHorizAnalysisEnum; 280 else if (strcmp(name,"AdjointSolution")==0) return AdjointSolutionEnum;281 303 else if (strcmp(name,"AnalysisCounter")==0) return AnalysisCounterEnum; 282 else if (strcmp(name,"NoneAnalysis")==0) return NoneAnalysisEnum;283 304 else if (strcmp(name,"DefaultAnalysis")==0) return DefaultAnalysisEnum; 284 305 else if (strcmp(name,"BalancethicknessAnalysis")==0) return BalancethicknessAnalysisEnum; … … 288 309 else if (strcmp(name,"BalancevelocityAnalysis")==0) return BalancevelocityAnalysisEnum; 289 310 else if (strcmp(name,"BalancevelocitySolution")==0) return BalancevelocitySolutionEnum; 290 else if (strcmp(name," BedSlopeAnalysis")==0) return BedSlopeAnalysisEnum;311 else if (strcmp(name,"L2ProjectionBaseAnalysis")==0) return L2ProjectionBaseAnalysisEnum; 291 312 else if (strcmp(name,"BedSlopeSolution")==0) return BedSlopeSolutionEnum; 292 else if (strcmp(name," BedSlopeXAnalysis")==0) return BedSlopeXAnalysisEnum;293 else if (strcmp(name," BedSlopeYAnalysis")==0) return BedSlopeYAnalysisEnum;313 else if (strcmp(name,"DamageEvolutionSolution")==0) return DamageEvolutionSolutionEnum; 314 else if (strcmp(name,"DamageEvolutionAnalysis")==0) return DamageEvolutionAnalysisEnum; 294 315 else if (strcmp(name,"StressbalanceAnalysis")==0) return StressbalanceAnalysisEnum; 295 316 else if (strcmp(name,"StressbalanceSIAAnalysis")==0) return StressbalanceSIAAnalysisEnum; … … 297 318 else if (strcmp(name,"StressbalanceVerticalAnalysis")==0) return StressbalanceVerticalAnalysisEnum; 298 319 else if (strcmp(name,"EnthalpyAnalysis")==0) return EnthalpyAnalysisEnum; 299 else if (strcmp(name,"EnthalpySolution")==0) return EnthalpySolutionEnum;300 320 else if (strcmp(name,"FlaimAnalysis")==0) return FlaimAnalysisEnum; 301 321 else if (strcmp(name,"FlaimSolution")==0) return FlaimSolutionEnum; … … 309 329 else if (strcmp(name,"FreeSurfaceBaseAnalysis")==0) return FreeSurfaceBaseAnalysisEnum; 310 330 else if (strcmp(name,"FreeSurfaceTopAnalysis")==0) return FreeSurfaceTopAnalysisEnum; 331 else if (strcmp(name,"ExtrudeFromBaseAnalysis")==0) return ExtrudeFromBaseAnalysisEnum; 332 else if (strcmp(name,"ExtrudeFromTopAnalysis")==0) return ExtrudeFromTopAnalysisEnum; 311 333 else if (strcmp(name,"SteadystateSolution")==0) return SteadystateSolutionEnum; 312 else if (strcmp(name," SurfaceSlopeAnalysis")==0) return SurfaceSlopeAnalysisEnum;334 else if (strcmp(name,"L2ProjectionTopAnalysis")==0) return L2ProjectionTopAnalysisEnum; 313 335 else if (strcmp(name,"SurfaceSlopeSolution")==0) return SurfaceSlopeSolutionEnum; 314 else if (strcmp(name,"SurfaceSlopeXAnalysis")==0) return SurfaceSlopeXAnalysisEnum;315 else if (strcmp(name,"SurfaceSlopeYAnalysis")==0) return SurfaceSlopeYAnalysisEnum;316 336 else if (strcmp(name,"SmoothedSurfaceSlopeXAnalysis")==0) return SmoothedSurfaceSlopeXAnalysisEnum; 317 337 else if (strcmp(name,"SmoothedSurfaceSlopeYAnalysis")==0) return SmoothedSurfaceSlopeYAnalysisEnum; … … 321 341 else if (strcmp(name,"GiaSolution")==0) return GiaSolutionEnum; 322 342 else if (strcmp(name,"GiaAnalysis")==0) return GiaAnalysisEnum; 343 else if (strcmp(name,"MeshdeformationSolution")==0) return MeshdeformationSolutionEnum; 344 else if (strcmp(name,"MeshdeformationAnalysis")==0) return MeshdeformationAnalysisEnum; 323 345 else if (strcmp(name,"Approximation")==0) return ApproximationEnum; 324 346 else if (strcmp(name,"NoneApproximation")==0) return NoneApproximationEnum; … … 348 370 else if (strcmp(name,"ControlInput")==0) return ControlInputEnum; 349 371 else if (strcmp(name,"DatasetInput")==0) return DatasetInputEnum; 350 else if (strcmp(name,"DofIndexing")==0) return DofIndexingEnum;351 372 else if (strcmp(name,"DoubleInput")==0) return DoubleInputEnum; 352 373 else if (strcmp(name,"DataSetParam")==0) return DataSetParamEnum; … … 356 377 else if (strcmp(name,"DoubleVecParam")==0) return DoubleVecParamEnum; 357 378 else if (strcmp(name,"Element")==0) return ElementEnum; 358 else if (strcmp(name,"ElementResult")==0) return ElementResultEnum;359 379 else if (strcmp(name,"ExternalResult")==0) return ExternalResultEnum; 360 380 else if (strcmp(name,"FileParam")==0) return FileParamEnum; 361 else if (strcmp(name,"Hook")==0) return HookEnum;362 else if (strcmp(name,"Icefront")==0) return IcefrontEnum;363 381 else if (strcmp(name,"Input")==0) return InputEnum; 364 382 else if (strcmp(name,"IntInput")==0) return IntInputEnum; 365 else if (strcmp(name,"IntParam")==0) return IntParamEnum; 383 else if (strcmp(name,"InputToExtrude")==0) return InputToExtrudeEnum; 384 else if (strcmp(name,"InputToL2Project")==0) return InputToL2ProjectEnum; 385 else stage=4; 386 } 387 if(stage==4){ 388 if (strcmp(name,"IntParam")==0) return IntParamEnum; 366 389 else if (strcmp(name,"IntVecParam")==0) return IntVecParamEnum; 367 390 else if (strcmp(name,"TransientParam")==0) return TransientParamEnum; 368 else if (strcmp(name,"IceFrontType")==0) return IceFrontTypeEnum;369 else if (strcmp(name,"SSA2dIceFront")==0) return SSA2dIceFrontEnum;370 else if (strcmp(name,"SSA3dIceFront")==0) return SSA3dIceFrontEnum;371 391 else if (strcmp(name,"Matice")==0) return MaticeEnum; 372 else if (strcmp(name,"Matdamageice")==0) return MatdamageiceEnum;373 392 else if (strcmp(name,"Matpar")==0) return MatparEnum; 374 393 else if (strcmp(name,"Node")==0) return NodeEnum; … … 376 395 else if (strcmp(name,"NumericalfluxType")==0) return NumericalfluxTypeEnum; 377 396 else if (strcmp(name,"Param")==0) return ParamEnum; 378 else if (strcmp(name,"L1L2IceFront")==0) return L1L2IceFrontEnum;379 else if (strcmp(name,"HOIceFront")==0) return HOIceFrontEnum;380 397 else if (strcmp(name,"Pengrid")==0) return PengridEnum; 381 398 else if (strcmp(name,"Penpair")==0) return PenpairEnum; … … 383 400 else if (strcmp(name,"PentaInput")==0) return PentaInputEnum; 384 401 else if (strcmp(name,"Profiler")==0) return ProfilerEnum; 385 else stage=4; 386 } 387 if(stage==4){ 388 if (strcmp(name,"MatrixParam")==0) return MatrixParamEnum; 402 else if (strcmp(name,"MatrixParam")==0) return MatrixParamEnum; 389 403 else if (strcmp(name,"NodeSId")==0) return NodeSIdEnum; 390 404 else if (strcmp(name,"VectorParam")==0) return VectorParamEnum; … … 396 410 else if (strcmp(name,"SpcStatic")==0) return SpcStaticEnum; 397 411 else if (strcmp(name,"SpcTransient")==0) return SpcTransientEnum; 398 else if (strcmp(name,"FSIceFront")==0) return FSIceFrontEnum;399 412 else if (strcmp(name,"StringArrayParam")==0) return StringArrayParamEnum; 400 413 else if (strcmp(name,"StringParam")==0) return StringParamEnum; 414 else if (strcmp(name,"Seg")==0) return SegEnum; 415 else if (strcmp(name,"SegInput")==0) return SegInputEnum; 401 416 else if (strcmp(name,"Tria")==0) return TriaEnum; 402 417 else if (strcmp(name,"TriaInput")==0) return TriaInputEnum; … … 419 434 else if (strcmp(name,"BedSlopeY")==0) return BedSlopeYEnum; 420 435 else if (strcmp(name,"Boundary")==0) return BoundaryEnum; 421 else if (strcmp(name,"Constant")==0) return ConstantEnum;422 436 else if (strcmp(name,"Converged")==0) return ConvergedEnum; 423 437 else if (strcmp(name,"Fill")==0) return FillEnum; … … 427 441 else if (strcmp(name,"Internal")==0) return InternalEnum; 428 442 else if (strcmp(name,"MassFlux")==0) return MassFluxEnum; 429 else if (strcmp(name,"MaxPenetration")==0) return MaxPenetrationEnum;430 443 else if (strcmp(name,"MeltingOffset")==0) return MeltingOffsetEnum; 431 444 else if (strcmp(name,"Misfit")==0) return MisfitEnum; 432 else if (strcmp(name,"NumberNodeToElementConnectivity")==0) return NumberNodeToElementConnectivityEnum;433 445 else if (strcmp(name,"Pressure")==0) return PressureEnum; 434 446 else if (strcmp(name,"PressurePicard")==0) return PressurePicardEnum; … … 456 468 else if (strcmp(name,"SurfaceSlopeY")==0) return SurfaceSlopeYEnum; 457 469 else if (strcmp(name,"Temperature")==0) return TemperatureEnum; 458 else if (strcmp(name,"TemperatureOld")==0) return TemperatureOldEnum;459 470 else if (strcmp(name,"TemperaturePicard")==0) return TemperaturePicardEnum; 460 471 else if (strcmp(name,"ThicknessAbsMisfit")==0) return ThicknessAbsMisfitEnum; … … 480 491 else if (strcmp(name,"ThicknessAlongGradient")==0) return ThicknessAlongGradientEnum; 481 492 else if (strcmp(name,"ThicknessAcrossGradient")==0) return ThicknessAcrossGradientEnum; 482 else if (strcmp(name,"StepResponses")==0) return StepResponsesEnum;483 493 else if (strcmp(name,"IntMatParam")==0) return IntMatParamEnum; 484 494 else if (strcmp(name,"RheologyBbarAbsGradient")==0) return RheologyBbarAbsGradientEnum; … … 496 506 else if (strcmp(name,"StressTensorxy")==0) return StressTensorxyEnum; 497 507 else if (strcmp(name,"StressTensorxz")==0) return StressTensorxzEnum; 498 else if (strcmp(name,"StressTensoryy")==0) return StressTensoryyEnum; 508 else stage=5; 509 } 510 if(stage==5){ 511 if (strcmp(name,"StressTensoryy")==0) return StressTensoryyEnum; 499 512 else if (strcmp(name,"StressTensoryz")==0) return StressTensoryzEnum; 500 513 else if (strcmp(name,"StressTensorzz")==0) return StressTensorzzEnum; … … 506 519 else if (strcmp(name,"P1DG")==0) return P1DGEnum; 507 520 else if (strcmp(name,"P1bubble")==0) return P1bubbleEnum; 508 else stage=5; 509 } 510 if(stage==5){ 511 if (strcmp(name,"P1bubblecondensed")==0) return P1bubblecondensedEnum; 521 else if (strcmp(name,"P1bubblecondensed")==0) return P1bubblecondensedEnum; 512 522 else if (strcmp(name,"P2")==0) return P2Enum; 513 523 else if (strcmp(name,"P2xP1")==0) return P2xP1Enum; … … 519 529 else if (strcmp(name,"TaylorHood")==0) return TaylorHoodEnum; 520 530 else if (strcmp(name,"SaveResults")==0) return SaveResultsEnum; 521 else if (strcmp(name,"BoolElementResult")==0) return BoolElementResultEnum;522 531 else if (strcmp(name,"BoolExternalResult")==0) return BoolExternalResultEnum; 523 else if (strcmp(name,"DoubleElementResult")==0) return DoubleElementResultEnum;524 532 else if (strcmp(name,"DoubleExternalResult")==0) return DoubleExternalResultEnum; 525 533 else if (strcmp(name,"DoubleMatExternalResult")==0) return DoubleMatExternalResultEnum; 526 534 else if (strcmp(name,"IntExternalResult")==0) return IntExternalResultEnum; 527 535 else if (strcmp(name,"J")==0) return JEnum; 528 else if (strcmp(name,"Patch")==0) return PatchEnum;529 else if (strcmp(name,"PatchNodes")==0) return PatchNodesEnum;530 else if (strcmp(name,"PatchVertices")==0) return PatchVerticesEnum;531 else if (strcmp(name,"PentaP1ElementResult")==0) return PentaP1ElementResultEnum;532 536 else if (strcmp(name,"StringExternalResult")==0) return StringExternalResultEnum; 533 537 else if (strcmp(name,"Step")==0) return StepEnum; 534 538 else if (strcmp(name,"Time")==0) return TimeEnum; 535 else if (strcmp(name,"TriaP1ElementResult")==0) return TriaP1ElementResultEnum;536 539 else if (strcmp(name,"WaterColumnOld")==0) return WaterColumnOldEnum; 540 else if (strcmp(name,"Outputdefinition")==0) return OutputdefinitionEnum; 541 else if (strcmp(name,"OutputdefinitionList")==0) return OutputdefinitionListEnum; 542 else if (strcmp(name,"Massfluxatgate")==0) return MassfluxatgateEnum; 543 else if (strcmp(name,"MassfluxatgateName")==0) return MassfluxatgateNameEnum; 544 else if (strcmp(name,"MassfluxatgateSegments")==0) return MassfluxatgateSegmentsEnum; 537 545 else if (strcmp(name,"MinVel")==0) return MinVelEnum; 538 546 else if (strcmp(name,"MaxVel")==0) return MaxVelEnum; … … 547 555 else if (strcmp(name,"MaxAbsVz")==0) return MaxAbsVzEnum; 548 556 else if (strcmp(name,"IceVolume")==0) return IceVolumeEnum; 557 else if (strcmp(name,"IceVolumeAboveFloatation")==0) return IceVolumeAboveFloatationEnum; 549 558 else if (strcmp(name,"TotalSmb")==0) return TotalSmbEnum; 550 559 else if (strcmp(name,"Absolute")==0) return AbsoluteEnum; … … 556 565 else if (strcmp(name,"SubelementMigration2")==0) return SubelementMigration2Enum; 557 566 else if (strcmp(name,"MaskGroundediceLevelset")==0) return MaskGroundediceLevelsetEnum; 567 else if (strcmp(name,"QmuMaskGroundediceLevelset")==0) return QmuMaskGroundediceLevelsetEnum; 558 568 else if (strcmp(name,"FSSolver")==0) return FSSolverEnum; 559 569 else if (strcmp(name,"Adjoint")==0) return AdjointEnum; … … 592 602 else if (strcmp(name,"Dense")==0) return DenseEnum; 593 603 else if (strcmp(name,"MpiDense")==0) return MpiDenseEnum; 604 else if (strcmp(name,"MpiSparse")==0) return MpiSparseEnum; 594 605 else if (strcmp(name,"Seq")==0) return SeqEnum; 595 606 else if (strcmp(name,"Mpi")==0) return MpiEnum; 607 else if (strcmp(name,"Mumps")==0) return MumpsEnum; 608 else if (strcmp(name,"Gsl")==0) return GslEnum; 596 609 else if (strcmp(name,"Option")==0) return OptionEnum; 597 610 else if (strcmp(name,"GenericOption")==0) return GenericOptionEnum; 598 611 else if (strcmp(name,"OptionCell")==0) return OptionCellEnum; 599 else if (strcmp(name,"OptionChar")==0) return OptionCharEnum;600 612 else if (strcmp(name,"OptionStruct")==0) return OptionStructEnum; 601 else if (strcmp(name,"OptionDouble")==0) return OptionDoubleEnum;602 else if (strcmp(name,"OptionLogical")==0) return OptionLogicalEnum;603 613 else if (strcmp(name,"Paterson")==0) return PatersonEnum; 604 614 else if (strcmp(name,"Arrhenius")==0) return ArrheniusEnum; … … 608 618 } 609 619 /*If we reach this point, the string provided has not been found*/ 610 _error_("Enum " << name << " not found"); 620 if(notfounderror) 621 _error_("Enum " << name << " not found"); 622 else 623 return -1; 611 624 }
Note:
See TracChangeset
for help on using the changeset viewer.