Ignore:
Timestamp:
08/13/14 14:16:02 (11 years ago)
Author:
Mathieu Morlighem
Message:

DEL: duplicate enums

File:
1 edited

Legend:

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

    r18377 r18383  
    573573              else if (strcmp(name,"DeviatoricStressyz")==0) return DeviatoricStressyzEnum;
    574574              else if (strcmp(name,"DeviatoricStresszz")==0) return DeviatoricStresszzEnum;
    575               else if (strcmp(name,"Stress")==0) return StressEnum;
    576               else if (strcmp(name,"Stressxx")==0) return StressxxEnum;
    577               else if (strcmp(name,"Stressxy")==0) return StressxyEnum;
    578               else if (strcmp(name,"Stressxz")==0) return StressxzEnum;
    579               else if (strcmp(name,"Stressyy")==0) return StressyyEnum;
    580               else if (strcmp(name,"Stressyz")==0) return StressyzEnum;
    581               else if (strcmp(name,"Stresszz")==0) return StresszzEnum;
    582575              else if (strcmp(name,"StrainRate")==0) return StrainRateEnum;
    583576              else if (strcmp(name,"StrainRatexx")==0) return StrainRatexxEnum;
     
    629622              else if (strcmp(name,"MisfitName")==0) return MisfitNameEnum;
    630623              else if (strcmp(name,"MisfitModelEnum")==0) return MisfitModelEnumEnum;
    631          else stage=6;
    632    }
    633    if(stage==6){
    634               if (strcmp(name,"MisfitObservation")==0) return MisfitObservationEnum;
     624              else if (strcmp(name,"MisfitObservation")==0) return MisfitObservationEnum;
    635625              else if (strcmp(name,"MisfitObservationEnum")==0) return MisfitObservationEnumEnum;
    636626              else if (strcmp(name,"MisfitTimeinterpolation")==0) return MisfitTimeinterpolationEnum;
     
    639629              else if (strcmp(name,"SurfaceObservation")==0) return SurfaceObservationEnum;
    640630              else if (strcmp(name,"WeightsSurfaceObservation")==0) return WeightsSurfaceObservationEnum;
    641               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;
    642635              else if (strcmp(name,"MaxVel")==0) return MaxVelEnum;
    643636              else if (strcmp(name,"MinVx")==0) return MinVxEnum;
Note: See TracChangeset for help on using the changeset viewer.