Changeset 24203
- Timestamp:
- 10/03/19 15:02:49 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp
r24195 r24203 127 127 128 128 // temperature coefficient F 129 if(T> -6.0+Ttol) F = 0.7 + ((T/-6.0) * 0.3);130 if(T<= -6.0+Ttol && T>-22.0+Ttol) F = 1.0 - ((T+6.0)/-16.0 * 0.8);131 if(T<= -22.0+Ttol && T>-40.0+Ttol) F = 0.2 - ((T+22.0)/-18.0 * 0.2);129 if(T> -6.0+Ttol) F = 0.7 + ((T/-6.0) * 0.3); 130 if(T<= -6.0+Ttol && T> -22.0+Ttol) F = 1.0 - ((T+6.0)/-16.0 * 0.8); 131 if(T<= -22.0+Ttol && T> -40.0+Ttol) F = 0.2 - ((T+22.0)/-18.0 * 0.2); 132 132 133 133 // density coefficient F 134 if(d< 150.0-Dtol) H=1.0;135 136 if(d>= 150.0-Dtol & d<400.0-Dtol) H = 1.0 - ((d-150.0)/250.0);134 if(d< 150.0-Dtol) H=1.0; 135 136 if(d>= 150.0-Dtol && d <400.0-Dtol) H = 1.0 - ((d-150.0)/250.0); 137 137 138 138 // temperature gradient coefficient G … … 204 204 205 205 /*only when aIdx = 1 or 2 do we run grainGrowth: */ 206 if(aIdx!=1 & aIdx!=2){206 if(aIdx!=1 && aIdx!=2){ 207 207 /*come out as we came in: */ 208 208 return; … … 412 412 const IssmDouble dSnow = 300; // density of fresh snow [kg m-3] 413 413 414 if(aIdx==0 || ( adThresh - d[0]<Dtol)){414 if(aIdx==0 || (d[0]-adThresh)<Dtol){ 415 415 a[0] = aValue; 416 416 } … … 1104 1104 adjusts the properties of the top grid cell to account for accumulation 1105 1105 T_air & T = Air and top grid cell temperatures [K] 1106 Tmean = average surface temperature [K] 1106 1107 Vmean = average wind velocity [m s-1] 1107 1108 V = wind velocity [m s-1] -
issm/trunk-jpl/src/m/classes/SMBgemb.m
r24194 r24203 415 415 WriteData(fid,prefix,'object',self,'class','smb','fieldname','denIdx','format','Integer'); 416 416 WriteData(fid,prefix,'object',self,'class','smb','fieldname','dsnowIdx','format','Integer'); 417 WriteData(fid,prefix,'object',self,'class','smb','fieldname','dsnowIdx','format','Integer');418 417 WriteData(fid,prefix,'object',self,'class','smb','fieldname','InitDensityScaling','format','Double'); 419 418 WriteData(fid,prefix,'object',self,'class','smb','fieldname','ThermoDeltaTScaling','format','Double'); -
issm/trunk-jpl/test/NightlyRun/test243.m
r24193 r24203 48 48 %Fields and tolerances to track changes 49 49 field_names ={'SmbDz','SmbT' ,'SmbD' ,'SmbRe','SmbGdn','SmbGsp','SmbA' ,'SmbEC','SmbMassBalance','SmbMAdd','SmbDzAdd','SmbFAC','SmbMeanSHF','SmbMeanLHF','SmbMeanULW','SmbNetLW','SmbNetSW'}; 50 field_tolerances ={1e-11,1e-12,1e-11,2e-11,1e-11,1e-11,1e-12,4e-12,1e-12,1e-12,1e-12,2e-10,2e-11, 2e-11, 1e-11, 1e-9, 2e-11};50 field_tolerances ={1e-11,1e-12,1e-11,2e-11,1e-11,1e-11,1e-12,4e-12,1e-12,1e-12,1e-12,2e-10,2e-11, 2e-11, 1e-11, 2e-9, 2e-11}; 51 51 52 52 field_values={... -
issm/trunk-jpl/test/NightlyRun/test243.py
r24193 r24203 62 62 #Fields and tolerances to track changes 63 63 field_names = ['SmbDz', 'SmbT', 'SmbD', 'SmbRe', 'SmbGdn', 'SmbGsp', 'SmbA', 'SmbEC', 'SmbMassBalance', 'SmbMAdd', 'SmbDzAdd', 'SmbFAC', 'SmbMeanSHF', 'SmbMeanLHF', 'SmbMeanULW', 'SmbNetLW', 'SmbNetSW'] 64 field_tolerances = [1e-11, 1e-12, 1e-11, 2e-11, 1e-11, 1e-11, 1e-12, 4e-12, 1e-12, 1e-12, 1e-12, 2e-10, 2e-11, 2e-11, 1e-11, 1e-9, 2e-11]64 field_tolerances = [1e-11, 1e-12, 1e-11, 2e-11, 1e-11, 1e-11, 1e-12, 4e-12, 1e-12, 1e-12, 1e-12, 2e-10, 2e-11, 2e-11, 1e-11, 2e-9, 2e-11] 65 65 #shape is different in python solution (fixed using reshape) which can cause test failure: 66 66 field_values = [md.results.TransientSolution[-1].SmbDz[0, 0:240].reshape(1, -1),
Note:
See TracChangeset
for help on using the changeset viewer.