Changeset 25293


Ignore:
Timestamp:
07/20/20 20:55:46 (5 years ago)
Author:
Eric.Larour
Message:

CHG: new SealevelArea output from the geometry module + better output information
for error in GetInput2Value.

Location:
issm/trunk-jpl/src/c
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r25292 r25293  
    56315631        }
    56325632        this->inputs2->SetDoubleInput(AreaEnum,this->lid,area);
     5633        this->AddInput2(SealevelAreaEnum,&area,P0Enum);
    56335634
    56345635        /*Free allocations:*/
  • issm/trunk-jpl/src/c/classes/Inputs2/Inputs2.cpp

    r25024 r25293  
    542542        /*Create it if necessary*/
    543543        if(this->inputs[id]){
    544                 if(this->inputs[id]->ObjectEnum()!=DoubleInput2Enum) _error_(EnumToStringx(this->inputs[id]->ObjectEnum())<<" cannot return a int");
     544                if(this->inputs[id]->ObjectEnum()!=DoubleInput2Enum) _error_(EnumToStringx(this->inputs[id]->ObjectEnum())<<" cannot return a double!");
    545545        }
    546546        else{
  • issm/trunk-jpl/src/c/shared/Enum/Enum.vim

    r25252 r25293  
    820820syn keyword cConstant SurfaceAbsVelMisfitEnum
    821821syn keyword cConstant AreaEnum
     822syn keyword cConstant SealevelAreaEnum
    822823syn keyword cConstant SurfaceAreaEnum
    823824syn keyword cConstant SurfaceAverageVelMisfitEnum
  • issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h

    r25252 r25293  
    818818        SurfaceAbsVelMisfitEnum,
    819819        AreaEnum,
     820        SealevelAreaEnum,
    820821        SurfaceAreaEnum,
    821822        SurfaceAverageVelMisfitEnum,
  • issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp

    r25252 r25293  
    822822                case SurfaceAbsVelMisfitEnum : return "SurfaceAbsVelMisfit";
    823823                case AreaEnum : return "Area";
     824                case SealevelAreaEnum : return "SealevelArea";
    824825                case SurfaceAreaEnum : return "SurfaceArea";
    825826                case SurfaceAverageVelMisfitEnum : return "SurfaceAverageVelMisfit";
  • issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp

    r25252 r25293  
    840840              else if (strcmp(name,"SurfaceAbsVelMisfit")==0) return SurfaceAbsVelMisfitEnum;
    841841              else if (strcmp(name,"Area")==0) return AreaEnum;
     842              else if (strcmp(name,"SealevelArea")==0) return SealevelAreaEnum;
    842843              else if (strcmp(name,"SurfaceArea")==0) return SurfaceAreaEnum;
    843844              else if (strcmp(name,"SurfaceAverageVelMisfit")==0) return SurfaceAverageVelMisfitEnum;
     
    874875              else if (strcmp(name,"VyObs")==0) return VyObsEnum;
    875876              else if (strcmp(name,"Vz")==0) return VzEnum;
    876               else if (strcmp(name,"VzFS")==0) return VzFSEnum;
    877877         else stage=8;
    878878   }
    879879   if(stage==8){
    880               if (strcmp(name,"VzHO")==0) return VzHOEnum;
     880              if (strcmp(name,"VzFS")==0) return VzFSEnum;
     881              else if (strcmp(name,"VzHO")==0) return VzHOEnum;
    881882              else if (strcmp(name,"VzMesh")==0) return VzMeshEnum;
    882883              else if (strcmp(name,"VzSSA")==0) return VzSSAEnum;
     
    997998              else if (strcmp(name,"AmrBamg")==0) return AmrBamgEnum;
    998999              else if (strcmp(name,"AmrNeopz")==0) return AmrNeopzEnum;
    999               else if (strcmp(name,"AndroidFrictionCoefficient")==0) return AndroidFrictionCoefficientEnum;
    10001000         else stage=9;
    10011001   }
    10021002   if(stage==9){
    1003               if (strcmp(name,"Arrhenius")==0) return ArrheniusEnum;
     1003              if (strcmp(name,"AndroidFrictionCoefficient")==0) return AndroidFrictionCoefficientEnum;
     1004              else if (strcmp(name,"Arrhenius")==0) return ArrheniusEnum;
    10041005              else if (strcmp(name,"AutodiffJacobian")==0) return AutodiffJacobianEnum;
    10051006              else if (strcmp(name,"Balancethickness2Analysis")==0) return Balancethickness2AnalysisEnum;
     
    11201121              else if (strcmp(name,"Gsl")==0) return GslEnum;
    11211122              else if (strcmp(name,"HOApproximation")==0) return HOApproximationEnum;
    1122               else if (strcmp(name,"HOFSApproximation")==0) return HOFSApproximationEnum;
    11231123         else stage=10;
    11241124   }
    11251125   if(stage==10){
    1126               if (strcmp(name,"Hook")==0) return HookEnum;
     1126              if (strcmp(name,"HOFSApproximation")==0) return HOFSApproximationEnum;
     1127              else if (strcmp(name,"Hook")==0) return HookEnum;
    11271128              else if (strcmp(name,"HydrologyDCEfficientAnalysis")==0) return HydrologyDCEfficientAnalysisEnum;
    11281129              else if (strcmp(name,"HydrologyDCInefficientAnalysis")==0) return HydrologyDCInefficientAnalysisEnum;
     
    12431244              else if (strcmp(name,"P0DG")==0) return P0DGEnum;
    12441245              else if (strcmp(name,"P1DG")==0) return P1DGEnum;
    1245               else if (strcmp(name,"P1P1")==0) return P1P1Enum;
    12461246         else stage=11;
    12471247   }
    12481248   if(stage==11){
    1249               if (strcmp(name,"P1P1GLS")==0) return P1P1GLSEnum;
     1249              if (strcmp(name,"P1P1")==0) return P1P1Enum;
     1250              else if (strcmp(name,"P1P1GLS")==0) return P1P1GLSEnum;
    12501251              else if (strcmp(name,"P1bubble")==0) return P1bubbleEnum;
    12511252              else if (strcmp(name,"P1bubblecondensed")==0) return P1bubblecondensedEnum;
     
    13661367              else if (strcmp(name,"BilinearInterp")==0) return BilinearInterpEnum;
    13671368              else if (strcmp(name,"CalvingdevCoeff")==0) return CalvingdevCoeffEnum;
    1368               else if (strcmp(name,"DeviatoricStress")==0) return DeviatoricStressEnum;
    13691369         else stage=12;
    13701370   }
    13711371   if(stage==12){
    1372               if (strcmp(name,"EtaAbsGradient")==0) return EtaAbsGradientEnum;
     1372              if (strcmp(name,"DeviatoricStress")==0) return DeviatoricStressEnum;
     1373              else if (strcmp(name,"EtaAbsGradient")==0) return EtaAbsGradientEnum;
    13731374              else if (strcmp(name,"MeshZ")==0) return MeshZEnum;
    13741375              else if (strcmp(name,"NearestInterp")==0) return NearestInterpEnum;
  • issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp

    r24477 r25293  
    4949        file_line= what_line;
    5050        /*When error messages are not shown properly, uncomment the following line*/
    51         //this->Report();
     51        this->Report();
    5252
    5353}/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.