Changeset 28273


Ignore:
Timestamp:
05/17/24 08:04:41 (11 months ago)
Author:
schlegel
Message:

CHG: Add GEMB output for SMB components at substeps

Location:
issm/trunk-jpl
Files:
12 edited

Legend:

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

    r28102 r28273  
    49794979}
    49804980/*}}}*/
    4981 void       Element::SmbGemb(IssmDouble timeinputs, int count){/*{{{*/
     4981void       Element::SmbGemb(IssmDouble timeinputs, int count, int steps){/*{{{*/
    49824982
    49834983        /*only compute SMB at the surface: */
     
    50865086        IssmDouble* adiffini = NULL;
    50875087        IssmDouble* Tini = NULL;
     5088        IssmDouble* ECsub=NULL;
     5089        IssmDouble* SMBsub=NULL;
     5090        IssmDouble* Msub=NULL;
     5091        IssmDouble* Rsub=NULL;
     5092        IssmDouble* Fsub=NULL;
     5093        IssmDouble* Rasub=NULL;
     5094        IssmDouble* Psub=NULL;
     5095        IssmDouble* FACsub=NULL;
     5096        IssmDouble* ECdsub=NULL;
     5097        IssmDouble* SMBdsub=NULL;
     5098        IssmDouble* Mdsub=NULL;
     5099        IssmDouble* Rdsub=NULL;
     5100        IssmDouble* Fdsub=NULL;
     5101        IssmDouble* Radsub=NULL;
     5102        IssmDouble* Pdsub=NULL;
    50885103        int         m=0;
    50895104        /*}}}*/
     
    52985313                sumP_input->GetInputAverage(&sumP);
    52995314                sumP=sumP*dt*rho_ice;
     5315
     5316                this->inputs->GetArray(SmbAccumulatedECSubstepEnum,this->lid,&ECsub,&steps);
     5317                this->inputs->GetArray(SmbAccumulatedMeltSubstepEnum,this->lid,&Msub,&steps);
     5318                this->inputs->GetArray(SmbAccumulatedRunoffSubstepEnum,this->lid,&Rsub,&steps);
     5319                this->inputs->GetArray(SmbAccumulatedRefreezeSubstepEnum,this->lid,&Fsub,&steps);
     5320                this->inputs->GetArray(SmbAccumulatedRainSubstepEnum,this->lid,&Rasub,&steps);
     5321                this->inputs->GetArray(SmbAccumulatedPrecipitationSubstepEnum,this->lid,&Psub,&steps);
     5322                this->inputs->GetArray(SmbAccumulatedMassBalanceSubstepEnum,this->lid,&SMBsub,&steps);
     5323                this->inputs->GetArray(SmbFACSubstepEnum,this->lid,&FACsub,&steps);
     5324
     5325                this->inputs->GetArray(SmbECSubstepEnum,this->lid,&ECdsub,&steps);
     5326                this->inputs->GetArray(SmbMeltSubstepEnum,this->lid,&Mdsub,&steps);
     5327                this->inputs->GetArray(SmbRunoffSubstepEnum,this->lid,&Rdsub,&steps);
     5328                this->inputs->GetArray(SmbRefreezeSubstepEnum,this->lid,&Fdsub,&steps);
     5329                this->inputs->GetArray(SmbRainSubstepEnum,this->lid,&Radsub,&steps);
     5330                this->inputs->GetArray(SmbPrecipitationSubstepEnum,this->lid,&Pdsub,&steps);
     5331                this->inputs->GetArray(SmbMassBalanceSubstepEnum,this->lid,&SMBdsub,&steps);
     5332        }
     5333        else{
     5334                ECsub=xNewZeroInit<IssmDouble>(steps);
     5335                SMBsub=xNewZeroInit<IssmDouble>(steps);
     5336                Msub=xNewZeroInit<IssmDouble>(steps);
     5337                Rsub=xNewZeroInit<IssmDouble>(steps);
     5338                Fsub=xNewZeroInit<IssmDouble>(steps);
     5339                Rasub=xNewZeroInit<IssmDouble>(steps);
     5340                Psub=xNewZeroInit<IssmDouble>(steps);
     5341                FACsub=xNewZeroInit<IssmDouble>(steps);
     5342
     5343                this->inputs->SetArrayInput(SmbAccumulatedECSubstepEnum,this->lid,ECsub,steps);
     5344                this->inputs->SetArrayInput(SmbAccumulatedMeltSubstepEnum,this->lid,Msub,steps);
     5345                this->inputs->SetArrayInput(SmbAccumulatedRunoffSubstepEnum,this->lid,Rsub,steps);
     5346                this->inputs->SetArrayInput(SmbAccumulatedRefreezeSubstepEnum,this->lid,Fsub,steps);
     5347                this->inputs->SetArrayInput(SmbAccumulatedRainSubstepEnum,this->lid,Rasub,steps);
     5348                this->inputs->SetArrayInput(SmbAccumulatedPrecipitationSubstepEnum,this->lid,Psub,steps);
     5349                this->inputs->SetArrayInput(SmbAccumulatedMassBalanceSubstepEnum,this->lid,SMBsub,steps);
     5350                this->inputs->SetArrayInput(SmbFACSubstepEnum,this->lid,FACsub,steps);
     5351
     5352                ECdsub=xNewZeroInit<IssmDouble>(steps);
     5353                SMBdsub=xNewZeroInit<IssmDouble>(steps);
     5354                Mdsub=xNewZeroInit<IssmDouble>(steps);
     5355                Rdsub=xNewZeroInit<IssmDouble>(steps);
     5356                Fdsub=xNewZeroInit<IssmDouble>(steps);
     5357                Radsub=xNewZeroInit<IssmDouble>(steps);
     5358                Pdsub=xNewZeroInit<IssmDouble>(steps);
     5359
     5360                this->inputs->SetArrayInput(SmbECSubstepEnum,this->lid,ECdsub,steps);
     5361                this->inputs->SetArrayInput(SmbMeltSubstepEnum,this->lid,Mdsub,steps);
     5362                this->inputs->SetArrayInput(SmbRunoffSubstepEnum,this->lid,Rdsub,steps);
     5363                this->inputs->SetArrayInput(SmbRefreezeSubstepEnum,this->lid,Fdsub,steps);
     5364                this->inputs->SetArrayInput(SmbRainSubstepEnum,this->lid,Radsub,steps);
     5365                this->inputs->SetArrayInput(SmbPrecipitationSubstepEnum,this->lid,Pdsub,steps);
     5366                this->inputs->SetArrayInput(SmbMassBalanceSubstepEnum,this->lid,SMBdsub,steps);
    53005367        }
    53015368        /*}}}*/
     
    54635530        this->SetElementInput(SmbAccumulatedRainEnum,accsumRa+Ra/rho_ice);
    54645531        this->SetElementInput(SmbAccumulatedPrecipitationEnum,accsumP+P/rho_ice);
     5532
     5533        ECsub[count-1]=accsumEC+EC/rho_ice;
     5534        Msub[count-1]=accsumM+M/rho_ice;
     5535        Fsub[count-1]=accsumF+F/rho_ice;
     5536        Rsub[count-1]=accsumR+R/rho_ice;
     5537        Rasub[count-1]=accsumRa+Ra/rho_ice;
     5538        Psub[count-1]=accsumP+P/rho_ice;
     5539        SMBsub[count-1]=accsumSMB+(P + EC -R)/rho_ice;
     5540        FACsub[count-1]=fac/1000.;
     5541
     5542        ECdsub[count-1]=EC/rho_ice;
     5543        Mdsub[count-1]=M/rho_ice;
     5544        Fdsub[count-1]=F/rho_ice;
     5545        Rdsub[count-1]=R/rho_ice;
     5546        Radsub[count-1]=Ra/rho_ice;
     5547        Pdsub[count-1]=P/rho_ice;
     5548        SMBdsub[count-1]=(P + EC -R)/rho_ice;
     5549
     5550        this->inputs->SetArrayInput(SmbAccumulatedECSubstepEnum,this->lid,ECsub,steps);
     5551        this->inputs->SetArrayInput(SmbAccumulatedMeltSubstepEnum,this->lid,Msub,steps);
     5552        this->inputs->SetArrayInput(SmbAccumulatedRunoffSubstepEnum,this->lid,Rsub,steps);
     5553        this->inputs->SetArrayInput(SmbAccumulatedRefreezeSubstepEnum,this->lid,Fsub,steps);
     5554        this->inputs->SetArrayInput(SmbAccumulatedRainSubstepEnum,this->lid,Rasub,steps);
     5555        this->inputs->SetArrayInput(SmbAccumulatedPrecipitationSubstepEnum,this->lid,Psub,steps);
     5556        this->inputs->SetArrayInput(SmbAccumulatedMassBalanceSubstepEnum,this->lid,SMBsub,steps);
     5557        this->inputs->SetArrayInput(SmbFACSubstepEnum,this->lid,FACsub,steps);
     5558
     5559        this->inputs->SetArrayInput(SmbECSubstepEnum,this->lid,ECdsub,steps);
     5560        this->inputs->SetArrayInput(SmbMeltSubstepEnum,this->lid,Mdsub,steps);
     5561        this->inputs->SetArrayInput(SmbRunoffSubstepEnum,this->lid,Rdsub,steps);
     5562        this->inputs->SetArrayInput(SmbRefreezeSubstepEnum,this->lid,Fdsub,steps);
     5563        this->inputs->SetArrayInput(SmbRainSubstepEnum,this->lid,Radsub,steps);
     5564        this->inputs->SetArrayInput(SmbPrecipitationSubstepEnum,this->lid,Pdsub,steps);
     5565        this->inputs->SetArrayInput(SmbMassBalanceSubstepEnum,this->lid,SMBdsub,steps);
    54655566   /*}}}*/
    54665567
     
    54755576        this->inputs->SetArrayInput(SmbAEnum,this->lid,a,m);
    54765577        this->inputs->SetArrayInput(SmbAdiffEnum,this->lid,adiff,m);
    5477         this->SetElementInput(SmbECEnum,sumEC/dt/rho_ice);
    5478         this->SetElementInput(SmbMassBalanceEnum,(sumP + sumEC -sumR)/dt/rho_ice);
    5479         this->SetElementInput(SmbMeltEnum,sumM/dt/rho_ice);
    5480         this->SetElementInput(SmbRunoffEnum,sumR/dt/rho_ice);
    5481         this->SetElementInput(SmbRefreezeEnum,sumF/dt/rho_ice);
    5482         this->SetElementInput(SmbRainEnum,sumRa/dt/rho_ice);
    5483         this->SetElementInput(SmbPrecipitationEnum,sumP/dt/rho_ice);
     5578        this->SetElementInput(SmbECEnum,cellsum(ECdsub,steps)/dt);
     5579        this->SetElementInput(SmbMassBalanceEnum,cellsum(SMBdsub,steps)/dt);
     5580        this->SetElementInput(SmbMeltEnum,cellsum(Mdsub,steps)/dt);
     5581        this->SetElementInput(SmbRunoffEnum,cellsum(Rdsub,steps)/dt);
     5582        this->SetElementInput(SmbRefreezeEnum,cellsum(Fdsub,steps)/dt);
     5583        this->SetElementInput(SmbRainEnum,cellsum(Radsub,steps)/dt);
     5584        this->SetElementInput(SmbPrecipitationEnum,cellsum(Pdsub,steps)/dt);
    54845585        this->SetElementInput(SmbMeanULWEnum,meanULW);
    54855586        this->SetElementInput(SmbNetLWEnum,netLW);
     
    55165617        if(Tini) xDelete<IssmDouble>(Tini);
    55175618        if(swf) xDelete<IssmDouble>(swf);
     5619
     5620        if(ECsub) xDelete<IssmDouble>(ECsub);
     5621        if(SMBsub) xDelete<IssmDouble>(SMBsub);
     5622        if(Msub) xDelete<IssmDouble>(Msub);
     5623        if(Rsub) xDelete<IssmDouble>(Rsub);
     5624        if(Fsub) xDelete<IssmDouble>(Fsub);
     5625        if(Rasub) xDelete<IssmDouble>(Rasub);
     5626        if(Psub) xDelete<IssmDouble>(Psub);
     5627        if(FACsub) xDelete<IssmDouble>(FACsub);
     5628        if(ECdsub) xDelete<IssmDouble>(ECdsub);
     5629        if(SMBdsub) xDelete<IssmDouble>(SMBdsub);
     5630        if(Mdsub) xDelete<IssmDouble>(Mdsub);
     5631        if(Rdsub) xDelete<IssmDouble>(Rdsub);
     5632        if(Fdsub) xDelete<IssmDouble>(Fdsub);
     5633        if(Radsub) xDelete<IssmDouble>(Radsub);
     5634        if(Pdsub) xDelete<IssmDouble>(Pdsub);
    55185635
    55195636        delete gauss;
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r28155 r28273  
    190190                void               SmbSemicTransient();
    191191                int                Sid();
    192                 void               SmbGemb(IssmDouble timeinputs, int count);
     192                void               SmbGemb(IssmDouble timeinputs, int count, int steps);
    193193                void               StrainRateESA(IssmDouble* epsilon,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input);
    194194                void               StrainRateFS(IssmDouble* epsilon,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input,Input* vz_input);
  • issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp

    r28253 r28273  
    3535
    3636        int        count=0;
     37        int        steps=0;
    3738        IssmDouble time,dt,finaltime;
    3839        IssmDouble timeclim=0.0;
     
    5354        IssmDouble timeinputs = time;
    5455
     56        steps=0;
     57        for (t=time;t<=time+dt-smb_dt;t=t+smb_dt){
     58                steps=steps+1;
     59        }
     60
    5561        /*Start loop: */
    5662        count=1;
     
    6369                        if (linear_interp) timeinputs = t-time+timeclim;
    6470                        else timeinputs = t-time+timeclim+smb_dt/2;
    65                         element->SmbGemb(timeinputs,count);
     71                        element->SmbGemb(timeinputs,count,steps);
    6672                }
    6773                count=count+1;
  • issm/trunk-jpl/src/c/shared/Enum/Enum.vim

    r28145 r28273  
    10581058syn keyword cConstant SmbAccumulatedRefreezeEnum
    10591059syn keyword cConstant SmbAccumulatedRunoffEnum
     1060syn keyword cConstant SmbAccumulatedECSubstepEnum
     1061syn keyword cConstant SmbAccumulatedMassBalanceSubstepEnum
     1062syn keyword cConstant SmbAccumulatedMeltSubstepEnum
     1063syn keyword cConstant SmbAccumulatedPrecipitationSubstepEnum
     1064syn keyword cConstant SmbAccumulatedRainSubstepEnum
     1065syn keyword cConstant SmbAccumulatedRefreezeSubstepEnum
     1066syn keyword cConstant SmbAccumulatedRunoffSubstepEnum
    10601067syn keyword cConstant SmbAlbedoEnum
    10611068syn keyword cConstant SmbAlbedoInitEnum
     
    11001107syn keyword cConstant SmbEAirEnum
    11011108syn keyword cConstant SmbECEnum
     1109syn keyword cConstant SmbECSubstepEnum
    11021110syn keyword cConstant SmbECDtEnum
    11031111syn keyword cConstant SmbECiniEnum
     
    11051113syn keyword cConstant SmbEvaporationEnum
    11061114syn keyword cConstant SmbFACEnum
     1115syn keyword cConstant SmbFACSubstepEnum
    11071116syn keyword cConstant SmbGdnEnum
    11081117syn keyword cConstant SmbGdniniEnum
     
    11261135syn keyword cConstant SmbMeanULWEnum
    11271136syn keyword cConstant SmbMeltEnum
     1137syn keyword cConstant SmbMeltSubstepEnum
    11281138syn keyword cConstant SmbMonthlytemperaturesEnum
    11291139syn keyword cConstant SmbMonthlydsradiationEnum
     
    11401150syn keyword cConstant SmbPddfacSnowEnum
    11411151syn keyword cConstant SmbPrecipitationEnum
     1152syn keyword cConstant SmbPrecipitationSubstepEnum
    11421153syn keyword cConstant SmbPrecipitationsAnomalyEnum
    11431154syn keyword cConstant SmbDsradiationAnomalyEnum
     
    11491160syn keyword cConstant SmbPrecipitationsReconstructedEnum
    11501161syn keyword cConstant SmbRainEnum
     1162syn keyword cConstant SmbRainSubstepEnum
    11511163syn keyword cConstant SmbReEnum
    11521164syn keyword cConstant SmbRefreezeEnum
     1165syn keyword cConstant SmbRefreezeSubstepEnum
    11531166syn keyword cConstant SmbReiniEnum
    11541167syn keyword cConstant SmbRunoffEnum
     
    18171830syn keyword cType Cfsurfacesquaretransient
    18181831syn keyword cType Channel
    1819 syn keyword cType classes
    18201832syn keyword cType Constraint
    18211833syn keyword cType Constraints
     
    18251837syn keyword cType ControlParam
    18261838syn keyword cType Covertree
     1839syn keyword cType DataSetParam
    18271840syn keyword cType DatasetInput
    1828 syn keyword cType DataSetParam
    18291841syn keyword cType Definition
    18301842syn keyword cType DependentObject
     
    18391851syn keyword cType ElementInput
    18401852syn keyword cType ElementMatrix
     1853syn keyword cType ElementVector
    18411854syn keyword cType Elements
    1842 syn keyword cType ElementVector
    18431855syn keyword cType ExponentialVariogram
    18441856syn keyword cType ExternalResult
     
    18471859syn keyword cType Friction
    18481860syn keyword cType Gauss
    1849 syn keyword cType GaussianVariogram
    1850 syn keyword cType gaussobjects
    18511861syn keyword cType GaussPenta
    18521862syn keyword cType GaussSeg
    18531863syn keyword cType GaussTetra
    18541864syn keyword cType GaussTria
     1865syn keyword cType GaussianVariogram
    18551866syn keyword cType GenericExternalResult
    18561867syn keyword cType GenericOption
     
    18691880syn keyword cType IssmDirectApplicInterface
    18701881syn keyword cType IssmParallelDirectApplicInterface
    1871 syn keyword cType krigingobjects
    18721882syn keyword cType Load
    18731883syn keyword cType Loads
     
    18801890syn keyword cType Matice
    18811891syn keyword cType Matlitho
    1882 syn keyword cType matrixobjects
    18831892syn keyword cType MatrixParam
    18841893syn keyword cType Misfit
     
    18931902syn keyword cType Observations
    18941903syn keyword cType Option
     1904syn keyword cType OptionUtilities
    18951905syn keyword cType Options
    1896 syn keyword cType OptionUtilities
    18971906syn keyword cType Param
    18981907syn keyword cType Parameters
     
    19081917syn keyword cType Regionaloutput
    19091918syn keyword cType Results
     1919syn keyword cType RiftStruct
    19101920syn keyword cType Riftfront
    1911 syn keyword cType RiftStruct
    19121921syn keyword cType SealevelGeometry
    19131922syn keyword cType Seg
    19141923syn keyword cType SegInput
     1924syn keyword cType SegRef
    19151925syn keyword cType Segment
    1916 syn keyword cType SegRef
    19171926syn keyword cType SpcDynamic
    19181927syn keyword cType SpcStatic
     
    19281937syn keyword cType Tria
    19291938syn keyword cType TriaInput
    1930 syn keyword cType Tria_MICI
    19311939syn keyword cType TriaRef
    19321940syn keyword cType Variogram
     
    19341942syn keyword cType Vertex
    19351943syn keyword cType Vertices
     1944syn keyword cType classes
     1945syn keyword cType gaussobjects
     1946syn keyword cType krigingobjects
     1947syn keyword cType matrixobjects
    19361948syn keyword cType AdjointBalancethickness2Analysis
    19371949syn keyword cType AdjointBalancethicknessAnalysis
  • issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h

    r28234 r28273  
    10561056        SmbAccumulatedRefreezeEnum,
    10571057        SmbAccumulatedRunoffEnum,
     1058        SmbAccumulatedECSubstepEnum,
     1059        SmbAccumulatedMassBalanceSubstepEnum,
     1060        SmbAccumulatedMeltSubstepEnum,
     1061        SmbAccumulatedPrecipitationSubstepEnum,
     1062        SmbAccumulatedRainSubstepEnum,
     1063        SmbAccumulatedRefreezeSubstepEnum,
     1064        SmbAccumulatedRunoffSubstepEnum,
    10581065        SmbAlbedoEnum,
    10591066        SmbAlbedoInitEnum,
     
    10981105        SmbEAirEnum,
    10991106        SmbECEnum,
     1107        SmbECSubstepEnum,
    11001108        SmbECDtEnum,
    11011109        SmbECiniEnum,
     
    11031111        SmbEvaporationEnum,
    11041112        SmbFACEnum,
     1113        SmbFACSubstepEnum,
    11051114        SmbGdnEnum,
    11061115        SmbGdniniEnum,
     
    11241133        SmbMeanULWEnum,
    11251134        SmbMeltEnum,
     1135        SmbMeltSubstepEnum,
    11261136        SmbMInitnum,
    11271137        SmbMonthlytemperaturesEnum,
     
    11391149        SmbPddfacSnowEnum,
    11401150        SmbPrecipitationEnum,
     1151        SmbPrecipitationSubstepEnum,
    11411152        SmbPrecipitationsAnomalyEnum,
    11421153        SmbDsradiationAnomalyEnum,
     
    11481159        SmbPrecipitationsReconstructedEnum,
    11491160        SmbRainEnum,
     1161        SmbRainSubstepEnum,
    11501162        SmbReEnum,
    11511163        SmbRefreezeEnum,
     1164        SmbRefreezeSubstepEnum,
    11521165        SmbReiniEnum,
    11531166        SmbRunoffEnum,
    1154    SmbRunoffSubstepEnum,
     1167        SmbRunoffSubstepEnum,
    11551168   SmbRunoffTransientEnum,
    11561169        SmbS0gcmEnum,
  • issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp

    r28145 r28273  
    10601060                case SmbAccumulatedRefreezeEnum : return "SmbAccumulatedRefreeze";
    10611061                case SmbAccumulatedRunoffEnum : return "SmbAccumulatedRunoff";
     1062                case SmbAccumulatedECSubstepEnum : return "SmbAccumulatedECSubstep";
     1063                case SmbAccumulatedMassBalanceSubstepEnum : return "SmbAccumulatedMassBalanceSubstep";
     1064                case SmbAccumulatedMeltSubstepEnum : return "SmbAccumulatedMeltSubstep";
     1065                case SmbAccumulatedPrecipitationSubstepEnum : return "SmbAccumulatedPrecipitationSubstep";
     1066                case SmbAccumulatedRainSubstepEnum : return "SmbAccumulatedRainSubstep";
     1067                case SmbAccumulatedRefreezeSubstepEnum : return "SmbAccumulatedRefreezeSubstep";
     1068                case SmbAccumulatedRunoffSubstepEnum : return "SmbAccumulatedRunoffSubstep";
    10621069                case SmbAlbedoEnum : return "SmbAlbedo";
    10631070                case SmbAlbedoInitEnum : return "SmbAlbedoInit";
     
    11021109                case SmbEAirEnum : return "SmbEAir";
    11031110                case SmbECEnum : return "SmbEC";
     1111                case SmbECSubstepEnum : return "SmbECSubstep";
    11041112                case SmbECDtEnum : return "SmbECDt";
    11051113                case SmbECiniEnum : return "SmbECini";
     
    11071115                case SmbEvaporationEnum : return "SmbEvaporation";
    11081116                case SmbFACEnum : return "SmbFAC";
     1117                case SmbFACSubstepEnum : return "SmbFACSubstep";
    11091118                case SmbGdnEnum : return "SmbGdn";
    11101119                case SmbGdniniEnum : return "SmbGdnini";
     
    11281137                case SmbMeanULWEnum : return "SmbMeanULW";
    11291138                case SmbMeltEnum : return "SmbMelt";
     1139                case SmbMeltSubstepEnum : return "SmbMeltSubstep";
    11301140                case SmbMonthlytemperaturesEnum : return "SmbMonthlytemperatures";
    11311141                case SmbMonthlydsradiationEnum : return "SmbMonthlydsradiation";
     
    11421152                case SmbPddfacSnowEnum : return "SmbPddfacSnow";
    11431153                case SmbPrecipitationEnum : return "SmbPrecipitation";
     1154                case SmbPrecipitationSubstepEnum : return "SmbPrecipitationSubstep";
    11441155                case SmbPrecipitationsAnomalyEnum : return "SmbPrecipitationsAnomaly";
    11451156                case SmbDsradiationAnomalyEnum : return "SmbDsradiationAnomaly";
     
    11511162                case SmbPrecipitationsReconstructedEnum : return "SmbPrecipitationsReconstructed";
    11521163                case SmbRainEnum : return "SmbRain";
     1164                case SmbRainSubstepEnum : return "SmbRainSubstep";
    11531165                case SmbReEnum : return "SmbRe";
    11541166                case SmbRefreezeEnum : return "SmbRefreeze";
     1167                case SmbRefreezeSubstepEnum : return "SmbRefreezeSubstep";
    11551168                case SmbReiniEnum : return "SmbReini";
    11561169                case SmbRunoffEnum : return "SmbRunoff";
  • issm/trunk-jpl/src/c/shared/Enum/Enumjl.vim

    r28145 r28273  
    10511051syn keyword juliaConstC SmbAccumulatedRefreezeEnum
    10521052syn keyword juliaConstC SmbAccumulatedRunoffEnum
     1053syn keyword juliaConstC SmbAccumulatedECSubstepEnum
     1054syn keyword juliaConstC SmbAccumulatedMassBalanceSubstepEnum
     1055syn keyword juliaConstC SmbAccumulatedMeltSubstepEnum
     1056syn keyword juliaConstC SmbAccumulatedPrecipitationSubstepEnum
     1057syn keyword juliaConstC SmbAccumulatedRainSubstepEnum
     1058syn keyword juliaConstC SmbAccumulatedRefreezeSubstepEnum
     1059syn keyword juliaConstC SmbAccumulatedRunoffSubstepEnum
    10531060syn keyword juliaConstC SmbAlbedoEnum
    10541061syn keyword juliaConstC SmbAlbedoInitEnum
     
    10931100syn keyword juliaConstC SmbEAirEnum
    10941101syn keyword juliaConstC SmbECEnum
     1102syn keyword juliaConstC SmbECSubstepEnum
    10951103syn keyword juliaConstC SmbECDtEnum
    10961104syn keyword juliaConstC SmbECiniEnum
     
    10981106syn keyword juliaConstC SmbEvaporationEnum
    10991107syn keyword juliaConstC SmbFACEnum
     1108syn keyword juliaConstC SmbFACSubstepEnum
    11001109syn keyword juliaConstC SmbGdnEnum
    11011110syn keyword juliaConstC SmbGdniniEnum
     
    11191128syn keyword juliaConstC SmbMeanULWEnum
    11201129syn keyword juliaConstC SmbMeltEnum
     1130syn keyword juliaConstC SmbMeltSubstepEnum
    11211131syn keyword juliaConstC SmbMonthlytemperaturesEnum
    11221132syn keyword juliaConstC SmbMonthlydsradiationEnum
     
    11331143syn keyword juliaConstC SmbPddfacSnowEnum
    11341144syn keyword juliaConstC SmbPrecipitationEnum
     1145syn keyword juliaConstC SmbPrecipitationSubstepEnum
    11351146syn keyword juliaConstC SmbPrecipitationsAnomalyEnum
    11361147syn keyword juliaConstC SmbDsradiationAnomalyEnum
     
    11421153syn keyword juliaConstC SmbPrecipitationsReconstructedEnum
    11431154syn keyword juliaConstC SmbRainEnum
     1155syn keyword juliaConstC SmbRainSubstepEnum
    11441156syn keyword juliaConstC SmbReEnum
    11451157syn keyword juliaConstC SmbRefreezeEnum
     1158syn keyword juliaConstC SmbRefreezeSubstepEnum
    11461159syn keyword juliaConstC SmbReiniEnum
    11471160syn keyword juliaConstC SmbRunoffEnum
  • issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp

    r28145 r28273  
    10841084              else if (strcmp(name,"SmbAccumulatedRefreeze")==0) return SmbAccumulatedRefreezeEnum;
    10851085              else if (strcmp(name,"SmbAccumulatedRunoff")==0) return SmbAccumulatedRunoffEnum;
     1086              else if (strcmp(name,"SmbAccumulatedECSubstep")==0) return SmbAccumulatedECSubstepEnum;
     1087              else if (strcmp(name,"SmbAccumulatedMassBalanceSubstep")==0) return SmbAccumulatedMassBalanceSubstepEnum;
     1088              else if (strcmp(name,"SmbAccumulatedMeltSubstep")==0) return SmbAccumulatedMeltSubstepEnum;
     1089              else if (strcmp(name,"SmbAccumulatedPrecipitationSubstep")==0) return SmbAccumulatedPrecipitationSubstepEnum;
     1090              else if (strcmp(name,"SmbAccumulatedRainSubstep")==0) return SmbAccumulatedRainSubstepEnum;
     1091              else if (strcmp(name,"SmbAccumulatedRefreezeSubstep")==0) return SmbAccumulatedRefreezeSubstepEnum;
     1092              else if (strcmp(name,"SmbAccumulatedRunoffSubstep")==0) return SmbAccumulatedRunoffSubstepEnum;
    10861093              else if (strcmp(name,"SmbAlbedo")==0) return SmbAlbedoEnum;
    10871094              else if (strcmp(name,"SmbAlbedoInit")==0) return SmbAlbedoInitEnum;
     
    11141121              else if (strcmp(name,"SmbDailytemperature")==0) return SmbDailytemperatureEnum;
    11151122              else if (strcmp(name,"SmbDailywindspeed")==0) return SmbDailywindspeedEnum;
    1116               else if (strcmp(name,"SmbDini")==0) return SmbDiniEnum;
     1123         else stage=10;
     1124   }
     1125   if(stage==10){
     1126              if (strcmp(name,"SmbDini")==0) return SmbDiniEnum;
    11171127              else if (strcmp(name,"SmbDlwrf")==0) return SmbDlwrfEnum;
    11181128              else if (strcmp(name,"SmbDulwrfValue")==0) return SmbDulwrfValueEnum;
     
    11211131              else if (strcmp(name,"SmbDzAdd")==0) return SmbDzAddEnum;
    11221132              else if (strcmp(name,"SmbDz")==0) return SmbDzEnum;
    1123          else stage=10;
    1124    }
    1125    if(stage==10){
    1126               if (strcmp(name,"SmbDzMin")==0) return SmbDzMinEnum;
     1133              else if (strcmp(name,"SmbDzMin")==0) return SmbDzMinEnum;
    11271134              else if (strcmp(name,"SmbDzTop")==0) return SmbDzTopEnum;
    11281135              else if (strcmp(name,"SmbDzini")==0) return SmbDziniEnum;
    11291136              else if (strcmp(name,"SmbEAir")==0) return SmbEAirEnum;
    11301137              else if (strcmp(name,"SmbEC")==0) return SmbECEnum;
     1138              else if (strcmp(name,"SmbECSubstep")==0) return SmbECSubstepEnum;
    11311139              else if (strcmp(name,"SmbECDt")==0) return SmbECDtEnum;
    11321140              else if (strcmp(name,"SmbECini")==0) return SmbECiniEnum;
     
    11341142              else if (strcmp(name,"SmbEvaporation")==0) return SmbEvaporationEnum;
    11351143              else if (strcmp(name,"SmbFAC")==0) return SmbFACEnum;
     1144              else if (strcmp(name,"SmbFACSubstep")==0) return SmbFACSubstepEnum;
    11361145              else if (strcmp(name,"SmbGdn")==0) return SmbGdnEnum;
    11371146              else if (strcmp(name,"SmbGdnini")==0) return SmbGdniniEnum;
     
    11551164              else if (strcmp(name,"SmbMeanULW")==0) return SmbMeanULWEnum;
    11561165              else if (strcmp(name,"SmbMelt")==0) return SmbMeltEnum;
     1166              else if (strcmp(name,"SmbMeltSubstep")==0) return SmbMeltSubstepEnum;
    11571167              else if (strcmp(name,"SmbMonthlytemperatures")==0) return SmbMonthlytemperaturesEnum;
    11581168              else if (strcmp(name,"SmbMonthlydsradiation")==0) return SmbMonthlydsradiationEnum;
     
    11691179              else if (strcmp(name,"SmbPddfacSnow")==0) return SmbPddfacSnowEnum;
    11701180              else if (strcmp(name,"SmbPrecipitation")==0) return SmbPrecipitationEnum;
     1181              else if (strcmp(name,"SmbPrecipitationSubstep")==0) return SmbPrecipitationSubstepEnum;
    11711182              else if (strcmp(name,"SmbPrecipitationsAnomaly")==0) return SmbPrecipitationsAnomalyEnum;
    11721183              else if (strcmp(name,"SmbDsradiationAnomaly")==0) return SmbDsradiationAnomalyEnum;
     
    11781189              else if (strcmp(name,"SmbPrecipitationsReconstructed")==0) return SmbPrecipitationsReconstructedEnum;
    11791190              else if (strcmp(name,"SmbRain")==0) return SmbRainEnum;
     1191              else if (strcmp(name,"SmbRainSubstep")==0) return SmbRainSubstepEnum;
    11801192              else if (strcmp(name,"SmbRe")==0) return SmbReEnum;
    11811193              else if (strcmp(name,"SmbRefreeze")==0) return SmbRefreezeEnum;
     1194              else if (strcmp(name,"SmbRefreezeSubstep")==0) return SmbRefreezeSubstepEnum;
    11821195              else if (strcmp(name,"SmbReini")==0) return SmbReiniEnum;
    11831196              else if (strcmp(name,"SmbRunoff")==0) return SmbRunoffEnum;
     
    12311244              else if (strcmp(name,"StrainRatexz")==0) return StrainRatexzEnum;
    12321245              else if (strcmp(name,"StrainRateyy")==0) return StrainRateyyEnum;
    1233               else if (strcmp(name,"StrainRateyz")==0) return StrainRateyzEnum;
     1246         else stage=11;
     1247   }
     1248   if(stage==11){
     1249              if (strcmp(name,"StrainRateyz")==0) return StrainRateyzEnum;
    12341250              else if (strcmp(name,"StrainRatezz")==0) return StrainRatezzEnum;
    12351251              else if (strcmp(name,"StressMaxPrincipal")==0) return StressMaxPrincipalEnum;
     
    12441260              else if (strcmp(name,"SubglacialdischargeValuesMovingaverage")==0) return SubglacialdischargeValuesMovingaverageEnum;
    12451261              else if (strcmp(name,"SurfaceAbsMisfit")==0) return SurfaceAbsMisfitEnum;
    1246          else stage=11;
    1247    }
    1248    if(stage==11){
    1249               if (strcmp(name,"SurfaceAbsVelMisfit")==0) return SurfaceAbsVelMisfitEnum;
     1262              else if (strcmp(name,"SurfaceAbsVelMisfit")==0) return SurfaceAbsVelMisfitEnum;
    12501263              else if (strcmp(name,"Area")==0) return AreaEnum;
    12511264              else if (strcmp(name,"SealevelArea")==0) return SealevelAreaEnum;
     
    13541367              else if (strcmp(name,"Outputdefinition41")==0) return Outputdefinition41Enum;
    13551368              else if (strcmp(name,"Outputdefinition42")==0) return Outputdefinition42Enum;
    1356               else if (strcmp(name,"Outputdefinition43")==0) return Outputdefinition43Enum;
     1369         else stage=12;
     1370   }
     1371   if(stage==12){
     1372              if (strcmp(name,"Outputdefinition43")==0) return Outputdefinition43Enum;
    13571373              else if (strcmp(name,"Outputdefinition44")==0) return Outputdefinition44Enum;
    13581374              else if (strcmp(name,"Outputdefinition45")==0) return Outputdefinition45Enum;
     
    13671383              else if (strcmp(name,"Outputdefinition53")==0) return Outputdefinition53Enum;
    13681384              else if (strcmp(name,"Outputdefinition54")==0) return Outputdefinition54Enum;
    1369          else stage=12;
    1370    }
    1371    if(stage==12){
    1372               if (strcmp(name,"Outputdefinition55")==0) return Outputdefinition55Enum;
     1385              else if (strcmp(name,"Outputdefinition55")==0) return Outputdefinition55Enum;
    13731386              else if (strcmp(name,"Outputdefinition56")==0) return Outputdefinition56Enum;
    13741387              else if (strcmp(name,"Outputdefinition57")==0) return Outputdefinition57Enum;
     
    14771490              else if (strcmp(name,"Closed")==0) return ClosedEnum;
    14781491              else if (strcmp(name,"Colinear")==0) return ColinearEnum;
    1479               else if (strcmp(name,"Constraints")==0) return ConstraintsEnum;
     1492         else stage=13;
     1493   }
     1494   if(stage==13){
     1495              if (strcmp(name,"Constraints")==0) return ConstraintsEnum;
    14801496              else if (strcmp(name,"Contact")==0) return ContactEnum;
    14811497              else if (strcmp(name,"Contour")==0) return ContourEnum;
     
    14901506              else if (strcmp(name,"Cuffey")==0) return CuffeyEnum;
    14911507              else if (strcmp(name,"CuffeyTemperate")==0) return CuffeyTemperateEnum;
    1492          else stage=13;
    1493    }
    1494    if(stage==13){
    1495               if (strcmp(name,"DamageEvolutionAnalysis")==0) return DamageEvolutionAnalysisEnum;
     1508              else if (strcmp(name,"DamageEvolutionAnalysis")==0) return DamageEvolutionAnalysisEnum;
    14961509              else if (strcmp(name,"DamageEvolutionSolution")==0) return DamageEvolutionSolutionEnum;
    14971510              else if (strcmp(name,"DataSet")==0) return DataSetEnum;
     
    16001613              else if (strcmp(name,"IntVecParam")==0) return IntVecParamEnum;
    16011614              else if (strcmp(name,"Inputs")==0) return InputsEnum;
    1602               else if (strcmp(name,"Internal")==0) return InternalEnum;
     1615         else stage=14;
     1616   }
     1617   if(stage==14){
     1618              if (strcmp(name,"Internal")==0) return InternalEnum;
    16031619              else if (strcmp(name,"Intersect")==0) return IntersectEnum;
    16041620              else if (strcmp(name,"InversionVzObs")==0) return InversionVzObsEnum;
     
    16131629              else if (strcmp(name,"LevelsetAnalysis")==0) return LevelsetAnalysisEnum;
    16141630              else if (strcmp(name,"LevelsetfunctionPicard")==0) return LevelsetfunctionPicardEnum;
    1615          else stage=14;
    1616    }
    1617    if(stage==14){
    1618               if (strcmp(name,"LinearFloatingMeltRate")==0) return LinearFloatingMeltRateEnum;
     1631              else if (strcmp(name,"LinearFloatingMeltRate")==0) return LinearFloatingMeltRateEnum;
    16191632              else if (strcmp(name,"LinearFloatingMeltRatearma")==0) return LinearFloatingMeltRatearmaEnum;
    16201633              else if (strcmp(name,"LliboutryDuval")==0) return LliboutryDuvalEnum;
     
    17231736              else if (strcmp(name,"Regular")==0) return RegularEnum;
    17241737              else if (strcmp(name,"RecoveryAnalysis")==0) return RecoveryAnalysisEnum;
    1725               else if (strcmp(name,"Riftfront")==0) return RiftfrontEnum;
     1738         else stage=15;
     1739   }
     1740   if(stage==15){
     1741              if (strcmp(name,"Riftfront")==0) return RiftfrontEnum;
    17261742              else if (strcmp(name,"SamplingAnalysis")==0) return SamplingAnalysisEnum;
    17271743              else if (strcmp(name,"SamplingSolution")==0) return SamplingSolutionEnum;
     
    17361752              else if (strcmp(name,"SMBgradients")==0) return SMBgradientsEnum;
    17371753              else if (strcmp(name,"SMBgradientscomponents")==0) return SMBgradientscomponentsEnum;
    1738          else stage=15;
    1739    }
    1740    if(stage==15){
    1741               if (strcmp(name,"SMBgradientsela")==0) return SMBgradientselaEnum;
     1754              else if (strcmp(name,"SMBgradientsela")==0) return SMBgradientselaEnum;
    17421755              else if (strcmp(name,"SMBhenning")==0) return SMBhenningEnum;
    17431756              else if (strcmp(name,"SMBmeltcomponents")==0) return SMBmeltcomponentsEnum;
Note: See TracChangeset for help on using the changeset viewer.