Changeset 27967


Ignore:
Timestamp:
10/25/23 12:50:47 (17 months ago)
Author:
badgeley
Message:

CHG: The SMBgradients class now expects smb units of m/yr ice eq.

Location:
issm/trunk-jpl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/SurfaceMassBalancex.cpp

    r27856 r27967  
    6767                        }
    6868
    69                         smb[v]=smb[v]/1000*rho_water/rho_ice;      // SMB in m/y ice
    7069                }  //end of the loop over the vertices
    7170
  • issm/trunk-jpl/src/m/classes/SMBgradients.m

    r27405 r27967  
    4747                                md = checkfield(md,'fieldname','smb.href','timeseries',1,'NaN',1,'Inf',1);
    4848                                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
    4952                                md = checkfield(md,'fieldname','smb.b_pos','timeseries',1,'NaN',1,'Inf',1);
    5053                                md = checkfield(md,'fieldname','smb.b_neg','timeseries',1,'NaN',1,'Inf',1);
     
    5962                        disp(sprintf('\n   SMB gradients parameters:'));
    6063                        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 [mm/yr water equiv]');
     64                        fielddisplay(self,'smbref',' reference smb from which deviation is calculated in smb gradients method [m/yr ice equiv]');
    6265                        fielddisplay(self,'b_pos',' slope of hs - smb regression line for accumulation regime required if smb gradients is activated');
    6366                        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  
    55md=setflowequation(md,'SSA','all');
    66md.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;
     7md.smb.b_pos=(-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice;
     8md.smb.b_neg=(250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice;
    99md.smb.href=md.geometry.surface;
    10 md.smb.smbref= 1000. - 0.001*md.mesh.x - 0.005*md.mesh.y;
     10md.smb.smbref= (1000. - 0.001*md.mesh.x - 0.005*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice;
    1111md.transient.requested_outputs={'default','TotalSmb'};
    1212md.cluster=generic('name',oshostname(),'np',3);
  • issm/trunk-jpl/test/NightlyRun/test329.m

    r21056 r27967  
    66md=setflowequation(md,'HO','all');
    77md.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;
     8md.smb.b_pos=(-100. + 0.00005*md.mesh.x - 0.0001*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice;
     9md.smb.b_neg=(250. + 0.000051*md.mesh.x - 0.00011*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice;
    1010md.smb.href=md.geometry.surface;
    11 md.smb.smbref= 1000. - 0.001*md.mesh.x - 0.005*md.mesh.y;
     11md.smb.smbref= (1000. - 0.001*md.mesh.x - 0.005*md.mesh.y) / 1000. * md.materials.rho_freshwater / md.materials.rho_ice;
    1212md.transient.requested_outputs={'default','TotalSmb'};
    1313md.cluster=generic('name',oshostname(),'np',3);
Note: See TracChangeset for help on using the changeset viewer.