Changeset 28273
- Timestamp:
- 05/17/24 08:04:41 (11 months ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r28102 r28273 4979 4979 } 4980 4980 /*}}}*/ 4981 void Element::SmbGemb(IssmDouble timeinputs, int count ){/*{{{*/4981 void Element::SmbGemb(IssmDouble timeinputs, int count, int steps){/*{{{*/ 4982 4982 4983 4983 /*only compute SMB at the surface: */ … … 5086 5086 IssmDouble* adiffini = NULL; 5087 5087 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; 5088 5103 int m=0; 5089 5104 /*}}}*/ … … 5298 5313 sumP_input->GetInputAverage(&sumP); 5299 5314 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); 5300 5367 } 5301 5368 /*}}}*/ … … 5463 5530 this->SetElementInput(SmbAccumulatedRainEnum,accsumRa+Ra/rho_ice); 5464 5531 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); 5465 5566 /*}}}*/ 5466 5567 … … 5475 5576 this->inputs->SetArrayInput(SmbAEnum,this->lid,a,m); 5476 5577 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); 5484 5585 this->SetElementInput(SmbMeanULWEnum,meanULW); 5485 5586 this->SetElementInput(SmbNetLWEnum,netLW); … … 5516 5617 if(Tini) xDelete<IssmDouble>(Tini); 5517 5618 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); 5518 5635 5519 5636 delete gauss; -
issm/trunk-jpl/src/c/classes/Elements/Element.h
r28155 r28273 190 190 void SmbSemicTransient(); 191 191 int Sid(); 192 void SmbGemb(IssmDouble timeinputs, int count );192 void SmbGemb(IssmDouble timeinputs, int count, int steps); 193 193 void StrainRateESA(IssmDouble* epsilon,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input); 194 194 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 35 35 36 36 int count=0; 37 int steps=0; 37 38 IssmDouble time,dt,finaltime; 38 39 IssmDouble timeclim=0.0; … … 53 54 IssmDouble timeinputs = time; 54 55 56 steps=0; 57 for (t=time;t<=time+dt-smb_dt;t=t+smb_dt){ 58 steps=steps+1; 59 } 60 55 61 /*Start loop: */ 56 62 count=1; … … 63 69 if (linear_interp) timeinputs = t-time+timeclim; 64 70 else timeinputs = t-time+timeclim+smb_dt/2; 65 element->SmbGemb(timeinputs,count );71 element->SmbGemb(timeinputs,count,steps); 66 72 } 67 73 count=count+1; -
issm/trunk-jpl/src/c/shared/Enum/Enum.vim
r28145 r28273 1058 1058 syn keyword cConstant SmbAccumulatedRefreezeEnum 1059 1059 syn keyword cConstant SmbAccumulatedRunoffEnum 1060 syn keyword cConstant SmbAccumulatedECSubstepEnum 1061 syn keyword cConstant SmbAccumulatedMassBalanceSubstepEnum 1062 syn keyword cConstant SmbAccumulatedMeltSubstepEnum 1063 syn keyword cConstant SmbAccumulatedPrecipitationSubstepEnum 1064 syn keyword cConstant SmbAccumulatedRainSubstepEnum 1065 syn keyword cConstant SmbAccumulatedRefreezeSubstepEnum 1066 syn keyword cConstant SmbAccumulatedRunoffSubstepEnum 1060 1067 syn keyword cConstant SmbAlbedoEnum 1061 1068 syn keyword cConstant SmbAlbedoInitEnum … … 1100 1107 syn keyword cConstant SmbEAirEnum 1101 1108 syn keyword cConstant SmbECEnum 1109 syn keyword cConstant SmbECSubstepEnum 1102 1110 syn keyword cConstant SmbECDtEnum 1103 1111 syn keyword cConstant SmbECiniEnum … … 1105 1113 syn keyword cConstant SmbEvaporationEnum 1106 1114 syn keyword cConstant SmbFACEnum 1115 syn keyword cConstant SmbFACSubstepEnum 1107 1116 syn keyword cConstant SmbGdnEnum 1108 1117 syn keyword cConstant SmbGdniniEnum … … 1126 1135 syn keyword cConstant SmbMeanULWEnum 1127 1136 syn keyword cConstant SmbMeltEnum 1137 syn keyword cConstant SmbMeltSubstepEnum 1128 1138 syn keyword cConstant SmbMonthlytemperaturesEnum 1129 1139 syn keyword cConstant SmbMonthlydsradiationEnum … … 1140 1150 syn keyword cConstant SmbPddfacSnowEnum 1141 1151 syn keyword cConstant SmbPrecipitationEnum 1152 syn keyword cConstant SmbPrecipitationSubstepEnum 1142 1153 syn keyword cConstant SmbPrecipitationsAnomalyEnum 1143 1154 syn keyword cConstant SmbDsradiationAnomalyEnum … … 1149 1160 syn keyword cConstant SmbPrecipitationsReconstructedEnum 1150 1161 syn keyword cConstant SmbRainEnum 1162 syn keyword cConstant SmbRainSubstepEnum 1151 1163 syn keyword cConstant SmbReEnum 1152 1164 syn keyword cConstant SmbRefreezeEnum 1165 syn keyword cConstant SmbRefreezeSubstepEnum 1153 1166 syn keyword cConstant SmbReiniEnum 1154 1167 syn keyword cConstant SmbRunoffEnum … … 1817 1830 syn keyword cType Cfsurfacesquaretransient 1818 1831 syn keyword cType Channel 1819 syn keyword cType classes1820 1832 syn keyword cType Constraint 1821 1833 syn keyword cType Constraints … … 1825 1837 syn keyword cType ControlParam 1826 1838 syn keyword cType Covertree 1839 syn keyword cType DataSetParam 1827 1840 syn keyword cType DatasetInput 1828 syn keyword cType DataSetParam1829 1841 syn keyword cType Definition 1830 1842 syn keyword cType DependentObject … … 1839 1851 syn keyword cType ElementInput 1840 1852 syn keyword cType ElementMatrix 1853 syn keyword cType ElementVector 1841 1854 syn keyword cType Elements 1842 syn keyword cType ElementVector1843 1855 syn keyword cType ExponentialVariogram 1844 1856 syn keyword cType ExternalResult … … 1847 1859 syn keyword cType Friction 1848 1860 syn keyword cType Gauss 1849 syn keyword cType GaussianVariogram1850 syn keyword cType gaussobjects1851 1861 syn keyword cType GaussPenta 1852 1862 syn keyword cType GaussSeg 1853 1863 syn keyword cType GaussTetra 1854 1864 syn keyword cType GaussTria 1865 syn keyword cType GaussianVariogram 1855 1866 syn keyword cType GenericExternalResult 1856 1867 syn keyword cType GenericOption … … 1869 1880 syn keyword cType IssmDirectApplicInterface 1870 1881 syn keyword cType IssmParallelDirectApplicInterface 1871 syn keyword cType krigingobjects1872 1882 syn keyword cType Load 1873 1883 syn keyword cType Loads … … 1880 1890 syn keyword cType Matice 1881 1891 syn keyword cType Matlitho 1882 syn keyword cType matrixobjects1883 1892 syn keyword cType MatrixParam 1884 1893 syn keyword cType Misfit … … 1893 1902 syn keyword cType Observations 1894 1903 syn keyword cType Option 1904 syn keyword cType OptionUtilities 1895 1905 syn keyword cType Options 1896 syn keyword cType OptionUtilities1897 1906 syn keyword cType Param 1898 1907 syn keyword cType Parameters … … 1908 1917 syn keyword cType Regionaloutput 1909 1918 syn keyword cType Results 1919 syn keyword cType RiftStruct 1910 1920 syn keyword cType Riftfront 1911 syn keyword cType RiftStruct1912 1921 syn keyword cType SealevelGeometry 1913 1922 syn keyword cType Seg 1914 1923 syn keyword cType SegInput 1924 syn keyword cType SegRef 1915 1925 syn keyword cType Segment 1916 syn keyword cType SegRef1917 1926 syn keyword cType SpcDynamic 1918 1927 syn keyword cType SpcStatic … … 1928 1937 syn keyword cType Tria 1929 1938 syn keyword cType TriaInput 1930 syn keyword cType Tria_MICI1931 1939 syn keyword cType TriaRef 1932 1940 syn keyword cType Variogram … … 1934 1942 syn keyword cType Vertex 1935 1943 syn keyword cType Vertices 1944 syn keyword cType classes 1945 syn keyword cType gaussobjects 1946 syn keyword cType krigingobjects 1947 syn keyword cType matrixobjects 1936 1948 syn keyword cType AdjointBalancethickness2Analysis 1937 1949 syn keyword cType AdjointBalancethicknessAnalysis -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r28234 r28273 1056 1056 SmbAccumulatedRefreezeEnum, 1057 1057 SmbAccumulatedRunoffEnum, 1058 SmbAccumulatedECSubstepEnum, 1059 SmbAccumulatedMassBalanceSubstepEnum, 1060 SmbAccumulatedMeltSubstepEnum, 1061 SmbAccumulatedPrecipitationSubstepEnum, 1062 SmbAccumulatedRainSubstepEnum, 1063 SmbAccumulatedRefreezeSubstepEnum, 1064 SmbAccumulatedRunoffSubstepEnum, 1058 1065 SmbAlbedoEnum, 1059 1066 SmbAlbedoInitEnum, … … 1098 1105 SmbEAirEnum, 1099 1106 SmbECEnum, 1107 SmbECSubstepEnum, 1100 1108 SmbECDtEnum, 1101 1109 SmbECiniEnum, … … 1103 1111 SmbEvaporationEnum, 1104 1112 SmbFACEnum, 1113 SmbFACSubstepEnum, 1105 1114 SmbGdnEnum, 1106 1115 SmbGdniniEnum, … … 1124 1133 SmbMeanULWEnum, 1125 1134 SmbMeltEnum, 1135 SmbMeltSubstepEnum, 1126 1136 SmbMInitnum, 1127 1137 SmbMonthlytemperaturesEnum, … … 1139 1149 SmbPddfacSnowEnum, 1140 1150 SmbPrecipitationEnum, 1151 SmbPrecipitationSubstepEnum, 1141 1152 SmbPrecipitationsAnomalyEnum, 1142 1153 SmbDsradiationAnomalyEnum, … … 1148 1159 SmbPrecipitationsReconstructedEnum, 1149 1160 SmbRainEnum, 1161 SmbRainSubstepEnum, 1150 1162 SmbReEnum, 1151 1163 SmbRefreezeEnum, 1164 SmbRefreezeSubstepEnum, 1152 1165 SmbReiniEnum, 1153 1166 SmbRunoffEnum, 1154 1167 SmbRunoffSubstepEnum, 1155 1168 SmbRunoffTransientEnum, 1156 1169 SmbS0gcmEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r28145 r28273 1060 1060 case SmbAccumulatedRefreezeEnum : return "SmbAccumulatedRefreeze"; 1061 1061 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"; 1062 1069 case SmbAlbedoEnum : return "SmbAlbedo"; 1063 1070 case SmbAlbedoInitEnum : return "SmbAlbedoInit"; … … 1102 1109 case SmbEAirEnum : return "SmbEAir"; 1103 1110 case SmbECEnum : return "SmbEC"; 1111 case SmbECSubstepEnum : return "SmbECSubstep"; 1104 1112 case SmbECDtEnum : return "SmbECDt"; 1105 1113 case SmbECiniEnum : return "SmbECini"; … … 1107 1115 case SmbEvaporationEnum : return "SmbEvaporation"; 1108 1116 case SmbFACEnum : return "SmbFAC"; 1117 case SmbFACSubstepEnum : return "SmbFACSubstep"; 1109 1118 case SmbGdnEnum : return "SmbGdn"; 1110 1119 case SmbGdniniEnum : return "SmbGdnini"; … … 1128 1137 case SmbMeanULWEnum : return "SmbMeanULW"; 1129 1138 case SmbMeltEnum : return "SmbMelt"; 1139 case SmbMeltSubstepEnum : return "SmbMeltSubstep"; 1130 1140 case SmbMonthlytemperaturesEnum : return "SmbMonthlytemperatures"; 1131 1141 case SmbMonthlydsradiationEnum : return "SmbMonthlydsradiation"; … … 1142 1152 case SmbPddfacSnowEnum : return "SmbPddfacSnow"; 1143 1153 case SmbPrecipitationEnum : return "SmbPrecipitation"; 1154 case SmbPrecipitationSubstepEnum : return "SmbPrecipitationSubstep"; 1144 1155 case SmbPrecipitationsAnomalyEnum : return "SmbPrecipitationsAnomaly"; 1145 1156 case SmbDsradiationAnomalyEnum : return "SmbDsradiationAnomaly"; … … 1151 1162 case SmbPrecipitationsReconstructedEnum : return "SmbPrecipitationsReconstructed"; 1152 1163 case SmbRainEnum : return "SmbRain"; 1164 case SmbRainSubstepEnum : return "SmbRainSubstep"; 1153 1165 case SmbReEnum : return "SmbRe"; 1154 1166 case SmbRefreezeEnum : return "SmbRefreeze"; 1167 case SmbRefreezeSubstepEnum : return "SmbRefreezeSubstep"; 1155 1168 case SmbReiniEnum : return "SmbReini"; 1156 1169 case SmbRunoffEnum : return "SmbRunoff"; -
issm/trunk-jpl/src/c/shared/Enum/Enumjl.vim
r28145 r28273 1051 1051 syn keyword juliaConstC SmbAccumulatedRefreezeEnum 1052 1052 syn keyword juliaConstC SmbAccumulatedRunoffEnum 1053 syn keyword juliaConstC SmbAccumulatedECSubstepEnum 1054 syn keyword juliaConstC SmbAccumulatedMassBalanceSubstepEnum 1055 syn keyword juliaConstC SmbAccumulatedMeltSubstepEnum 1056 syn keyword juliaConstC SmbAccumulatedPrecipitationSubstepEnum 1057 syn keyword juliaConstC SmbAccumulatedRainSubstepEnum 1058 syn keyword juliaConstC SmbAccumulatedRefreezeSubstepEnum 1059 syn keyword juliaConstC SmbAccumulatedRunoffSubstepEnum 1053 1060 syn keyword juliaConstC SmbAlbedoEnum 1054 1061 syn keyword juliaConstC SmbAlbedoInitEnum … … 1093 1100 syn keyword juliaConstC SmbEAirEnum 1094 1101 syn keyword juliaConstC SmbECEnum 1102 syn keyword juliaConstC SmbECSubstepEnum 1095 1103 syn keyword juliaConstC SmbECDtEnum 1096 1104 syn keyword juliaConstC SmbECiniEnum … … 1098 1106 syn keyword juliaConstC SmbEvaporationEnum 1099 1107 syn keyword juliaConstC SmbFACEnum 1108 syn keyword juliaConstC SmbFACSubstepEnum 1100 1109 syn keyword juliaConstC SmbGdnEnum 1101 1110 syn keyword juliaConstC SmbGdniniEnum … … 1119 1128 syn keyword juliaConstC SmbMeanULWEnum 1120 1129 syn keyword juliaConstC SmbMeltEnum 1130 syn keyword juliaConstC SmbMeltSubstepEnum 1121 1131 syn keyword juliaConstC SmbMonthlytemperaturesEnum 1122 1132 syn keyword juliaConstC SmbMonthlydsradiationEnum … … 1133 1143 syn keyword juliaConstC SmbPddfacSnowEnum 1134 1144 syn keyword juliaConstC SmbPrecipitationEnum 1145 syn keyword juliaConstC SmbPrecipitationSubstepEnum 1135 1146 syn keyword juliaConstC SmbPrecipitationsAnomalyEnum 1136 1147 syn keyword juliaConstC SmbDsradiationAnomalyEnum … … 1142 1153 syn keyword juliaConstC SmbPrecipitationsReconstructedEnum 1143 1154 syn keyword juliaConstC SmbRainEnum 1155 syn keyword juliaConstC SmbRainSubstepEnum 1144 1156 syn keyword juliaConstC SmbReEnum 1145 1157 syn keyword juliaConstC SmbRefreezeEnum 1158 syn keyword juliaConstC SmbRefreezeSubstepEnum 1146 1159 syn keyword juliaConstC SmbReiniEnum 1147 1160 syn keyword juliaConstC SmbRunoffEnum -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r28145 r28273 1084 1084 else if (strcmp(name,"SmbAccumulatedRefreeze")==0) return SmbAccumulatedRefreezeEnum; 1085 1085 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; 1086 1093 else if (strcmp(name,"SmbAlbedo")==0) return SmbAlbedoEnum; 1087 1094 else if (strcmp(name,"SmbAlbedoInit")==0) return SmbAlbedoInitEnum; … … 1114 1121 else if (strcmp(name,"SmbDailytemperature")==0) return SmbDailytemperatureEnum; 1115 1122 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; 1117 1127 else if (strcmp(name,"SmbDlwrf")==0) return SmbDlwrfEnum; 1118 1128 else if (strcmp(name,"SmbDulwrfValue")==0) return SmbDulwrfValueEnum; … … 1121 1131 else if (strcmp(name,"SmbDzAdd")==0) return SmbDzAddEnum; 1122 1132 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; 1127 1134 else if (strcmp(name,"SmbDzTop")==0) return SmbDzTopEnum; 1128 1135 else if (strcmp(name,"SmbDzini")==0) return SmbDziniEnum; 1129 1136 else if (strcmp(name,"SmbEAir")==0) return SmbEAirEnum; 1130 1137 else if (strcmp(name,"SmbEC")==0) return SmbECEnum; 1138 else if (strcmp(name,"SmbECSubstep")==0) return SmbECSubstepEnum; 1131 1139 else if (strcmp(name,"SmbECDt")==0) return SmbECDtEnum; 1132 1140 else if (strcmp(name,"SmbECini")==0) return SmbECiniEnum; … … 1134 1142 else if (strcmp(name,"SmbEvaporation")==0) return SmbEvaporationEnum; 1135 1143 else if (strcmp(name,"SmbFAC")==0) return SmbFACEnum; 1144 else if (strcmp(name,"SmbFACSubstep")==0) return SmbFACSubstepEnum; 1136 1145 else if (strcmp(name,"SmbGdn")==0) return SmbGdnEnum; 1137 1146 else if (strcmp(name,"SmbGdnini")==0) return SmbGdniniEnum; … … 1155 1164 else if (strcmp(name,"SmbMeanULW")==0) return SmbMeanULWEnum; 1156 1165 else if (strcmp(name,"SmbMelt")==0) return SmbMeltEnum; 1166 else if (strcmp(name,"SmbMeltSubstep")==0) return SmbMeltSubstepEnum; 1157 1167 else if (strcmp(name,"SmbMonthlytemperatures")==0) return SmbMonthlytemperaturesEnum; 1158 1168 else if (strcmp(name,"SmbMonthlydsradiation")==0) return SmbMonthlydsradiationEnum; … … 1169 1179 else if (strcmp(name,"SmbPddfacSnow")==0) return SmbPddfacSnowEnum; 1170 1180 else if (strcmp(name,"SmbPrecipitation")==0) return SmbPrecipitationEnum; 1181 else if (strcmp(name,"SmbPrecipitationSubstep")==0) return SmbPrecipitationSubstepEnum; 1171 1182 else if (strcmp(name,"SmbPrecipitationsAnomaly")==0) return SmbPrecipitationsAnomalyEnum; 1172 1183 else if (strcmp(name,"SmbDsradiationAnomaly")==0) return SmbDsradiationAnomalyEnum; … … 1178 1189 else if (strcmp(name,"SmbPrecipitationsReconstructed")==0) return SmbPrecipitationsReconstructedEnum; 1179 1190 else if (strcmp(name,"SmbRain")==0) return SmbRainEnum; 1191 else if (strcmp(name,"SmbRainSubstep")==0) return SmbRainSubstepEnum; 1180 1192 else if (strcmp(name,"SmbRe")==0) return SmbReEnum; 1181 1193 else if (strcmp(name,"SmbRefreeze")==0) return SmbRefreezeEnum; 1194 else if (strcmp(name,"SmbRefreezeSubstep")==0) return SmbRefreezeSubstepEnum; 1182 1195 else if (strcmp(name,"SmbReini")==0) return SmbReiniEnum; 1183 1196 else if (strcmp(name,"SmbRunoff")==0) return SmbRunoffEnum; … … 1231 1244 else if (strcmp(name,"StrainRatexz")==0) return StrainRatexzEnum; 1232 1245 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; 1234 1250 else if (strcmp(name,"StrainRatezz")==0) return StrainRatezzEnum; 1235 1251 else if (strcmp(name,"StressMaxPrincipal")==0) return StressMaxPrincipalEnum; … … 1244 1260 else if (strcmp(name,"SubglacialdischargeValuesMovingaverage")==0) return SubglacialdischargeValuesMovingaverageEnum; 1245 1261 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; 1250 1263 else if (strcmp(name,"Area")==0) return AreaEnum; 1251 1264 else if (strcmp(name,"SealevelArea")==0) return SealevelAreaEnum; … … 1354 1367 else if (strcmp(name,"Outputdefinition41")==0) return Outputdefinition41Enum; 1355 1368 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; 1357 1373 else if (strcmp(name,"Outputdefinition44")==0) return Outputdefinition44Enum; 1358 1374 else if (strcmp(name,"Outputdefinition45")==0) return Outputdefinition45Enum; … … 1367 1383 else if (strcmp(name,"Outputdefinition53")==0) return Outputdefinition53Enum; 1368 1384 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; 1373 1386 else if (strcmp(name,"Outputdefinition56")==0) return Outputdefinition56Enum; 1374 1387 else if (strcmp(name,"Outputdefinition57")==0) return Outputdefinition57Enum; … … 1477 1490 else if (strcmp(name,"Closed")==0) return ClosedEnum; 1478 1491 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; 1480 1496 else if (strcmp(name,"Contact")==0) return ContactEnum; 1481 1497 else if (strcmp(name,"Contour")==0) return ContourEnum; … … 1490 1506 else if (strcmp(name,"Cuffey")==0) return CuffeyEnum; 1491 1507 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; 1496 1509 else if (strcmp(name,"DamageEvolutionSolution")==0) return DamageEvolutionSolutionEnum; 1497 1510 else if (strcmp(name,"DataSet")==0) return DataSetEnum; … … 1600 1613 else if (strcmp(name,"IntVecParam")==0) return IntVecParamEnum; 1601 1614 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; 1603 1619 else if (strcmp(name,"Intersect")==0) return IntersectEnum; 1604 1620 else if (strcmp(name,"InversionVzObs")==0) return InversionVzObsEnum; … … 1613 1629 else if (strcmp(name,"LevelsetAnalysis")==0) return LevelsetAnalysisEnum; 1614 1630 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; 1619 1632 else if (strcmp(name,"LinearFloatingMeltRatearma")==0) return LinearFloatingMeltRatearmaEnum; 1620 1633 else if (strcmp(name,"LliboutryDuval")==0) return LliboutryDuvalEnum; … … 1723 1736 else if (strcmp(name,"Regular")==0) return RegularEnum; 1724 1737 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; 1726 1742 else if (strcmp(name,"SamplingAnalysis")==0) return SamplingAnalysisEnum; 1727 1743 else if (strcmp(name,"SamplingSolution")==0) return SamplingSolutionEnum; … … 1736 1752 else if (strcmp(name,"SMBgradients")==0) return SMBgradientsEnum; 1737 1753 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; 1742 1755 else if (strcmp(name,"SMBhenning")==0) return SMBhenningEnum; 1743 1756 else if (strcmp(name,"SMBmeltcomponents")==0) return SMBmeltcomponentsEnum;
Note:
See TracChangeset
for help on using the changeset viewer.