Changeset 27967
- Timestamp:
- 10/25/23 12:50:47 (17 months ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/SurfaceMassBalancex.cpp
r27856 r27967 67 67 } 68 68 69 smb[v]=smb[v]/1000*rho_water/rho_ice; // SMB in m/y ice70 69 } //end of the loop over the vertices 71 70 -
issm/trunk-jpl/src/m/classes/SMBgradients.m
r27405 r27967 47 47 md = checkfield(md,'fieldname','smb.href','timeseries',1,'NaN',1,'Inf',1); 48 48 md = checkfield(md,'fieldname','smb.smbref','timeseries',1,'NaN',1,'Inf',1); 49 if max(max(abs(md.smb.smbref(1:end-1,:))))<1 50 disp('!!! Warning: SMBgradients now expects smbref to be in m/yr ice eq. instead of mm/yr water eq.'); 51 end 49 52 md = checkfield(md,'fieldname','smb.b_pos','timeseries',1,'NaN',1,'Inf',1); 50 53 md = checkfield(md,'fieldname','smb.b_neg','timeseries',1,'NaN',1,'Inf',1); … … 59 62 disp(sprintf('\n SMB gradients parameters:')); 60 63 fielddisplay(self,'href',' reference elevation from which deviation is used to calculate SMB adjustment in smb gradients method [m]'); 61 fielddisplay(self,'smbref',' reference smb from which deviation is calculated in smb gradients method [m m/yr waterequiv]');64 fielddisplay(self,'smbref',' reference smb from which deviation is calculated in smb gradients method [m/yr ice equiv]'); 62 65 fielddisplay(self,'b_pos',' slope of hs - smb regression line for accumulation regime required if smb gradients is activated'); 63 66 fielddisplay(self,'b_neg',' slope of hs - smb regression line for ablation regime required if smb gradients is activated'); -
issm/trunk-jpl/test/NightlyRun/test328.m
r24633 r27967 5 5 md=setflowequation(md,'SSA','all'); 6 6 md.smb = SMBgradients(); 7 md.smb.b_pos= -100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y;8 md.smb.b_neg= 250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y;7 md.smb.b_pos=(-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice; 8 md.smb.b_neg=(250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice; 9 9 md.smb.href=md.geometry.surface; 10 md.smb.smbref= 1000. - 0.001*md.mesh.x - 0.005*md.mesh.y;10 md.smb.smbref= (1000. - 0.001*md.mesh.x - 0.005*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice; 11 11 md.transient.requested_outputs={'default','TotalSmb'}; 12 12 md.cluster=generic('name',oshostname(),'np',3); -
issm/trunk-jpl/test/NightlyRun/test329.m
r21056 r27967 6 6 md=setflowequation(md,'HO','all'); 7 7 md.smb = SMBgradients(); 8 md.smb.b_pos= -100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y;9 md.smb.b_neg= 250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y;8 md.smb.b_pos=(-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice; 9 md.smb.b_neg=(250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice; 10 10 md.smb.href=md.geometry.surface; 11 md.smb.smbref= 1000. - 0.001*md.mesh.x - 0.005*md.mesh.y;11 md.smb.smbref= (1000. - 0.001*md.mesh.x - 0.005*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice; 12 12 md.transient.requested_outputs={'default','TotalSmb'}; 13 13 md.cluster=generic('name',oshostname(),'np',3);
Note:
See TracChangeset
for help on using the changeset viewer.