Changeset 27967 for issm/trunk-jpl/src


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

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

Location:
issm/trunk-jpl/src
Files:
2 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');
Note: See TracChangeset for help on using the changeset viewer.