Changeset 27196


Ignore:
Timestamp:
08/05/22 11:26:40 (3 years ago)
Author:
schlegel
Message:

CHG: make GEMB swId default value 0

Location:
issm/trunk-jpl
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/classes/SMBgemb.m

    r26550 r27196  
    7373                % 2: default value of 1, in areas with grain radius below teThresh and areas of dry snow (not bare ice or wet) at the surface
    7474
    75                 swIdx  = NaN; % apply all SW to top grid cell (0) or allow SW to penetrate surface (1) (default 1, if aIdx=2 function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002))
     75                swIdx  = NaN; %apply all SW to top grid cell (0) or allow SW to penetrate surface (1) (default 0, if swIdx=1 and aIdx=2, function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002))
    7676
    7777                denIdx = NaN; %densification model to use (default is 2):
     
    236236                        end
    237237
    238                         fielddisplay(self,'swIdx','apply all SW to top grid cell (0) or allow SW to penetrate surface (1) [default 1, if aIdx=2 function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002)]');
     238                        fielddisplay(self,'swIdx','apply all SW to top grid cell (0) or allow SW to penetrate surface (1) [default 0, if swIdx=1 and aIdx=2 function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002)]');
    239239                        fielddisplay(self,'denIdx',{'densification model to use (default is 2):',...
    240240                                '1 = emperical model of Herron and Langway (1980)',...
     
    343343                        self.aIdx = 1;
    344344                        self.eIdx = 1;
    345                         self.swIdx = 1;
     345                        self.swIdx = 0;
    346346                        self.denIdx = 2;
    347347                        self.dsnowIdx = 1;
  • TabularUnified issm/trunk-jpl/src/m/classes/SMBgemb.py

    r26550 r27196  
    8080        # 2: default value of 1, in areas with grain radius below teThresh and areas of dry snow (not bare ice or wet) at the surface
    8181
    82         self.swIdx                  = np.nan    # apply all SW to top grid cell (0) or allow SW to penetrate surface (1) (default 1, if aIdx=2 function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002))
     82        self.swIdx                  = np.nan    # apply all SW to top grid cell (0) or allow SW to penetrate surface (1) (default 0, if swIdx=1 and aIdx=2, function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002))
    8383
    8484        self.denIdx                 = np.nan    # densification model to use (default is 2):
     
    238238            s += '{}\n'.format(fielddisplay(self, 'K', 'time scale temperature coef. (7) [d]'))
    239239
    240         s += '{}\n'.format(fielddisplay(self, 'swIdx', 'apply all SW to top grid cell (0) or allow SW to penetrate surface (1) [default 1, if aIdx=2 function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002)]'))
     240        s += '{}\n'.format(fielddisplay(self, 'swIdx', 'apply all SW to top grid cell (0) or allow SW to penetrate surface (1) [default 0, if swIdx=1 and aIdx=2 function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002)]'))
    241241        s += '{}\n'.format(fielddisplay(self, 'denIdx', ['densification model to use (default is 2):',
    242242            '1 = emperical model of Herron and Langway (1980)',
     
    330330        self.aIdx = 1
    331331        self.eIdx = 1
    332         self.swIdx = 1
     332        self.swIdx = 0
    333333        self.denIdx = 2
    334334        self.dsnowIdx = 1
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test243.m

    r26271 r27196  
    1010md.smb = SMBgemb(md.mesh,md.geometry);
    1111md.smb.dsnowIdx = 1;
     12md.smb.swIdx = 1;
    1213
    1314%load hourly surface forcing date from 1979 to 2009:
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test243.py

    r27167 r27196  
    2121md.smb = SMBgemb(md.mesh, md.geometry)
    2222md.smb.dsnowIdx = 1
     23md.smb.swIdx = 1
    2324
    2425#load hourly surface forcing date from 1979 to 2009:
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test244.m

    r26208 r27196  
    1111md.smb = SMBgemb(md.mesh,md.geometry);
    1212md.smb.dsnowIdx = 0;
     13md.smb.swIdx = 1;
    1314
    1415%load hourly surface forcing date from 1979 to 2009:
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test244.py

    r26208 r27196  
    3030md.smb = SMBgemb(md.mesh, md.geometry)
    3131md.smb.dsnowIdx = 0
     32md.smb.swIdx = 1
    3233
    3334#load hourly surface forcing date from 1979 to 2009:
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test252.m

    r26208 r27196  
    1010md.smb = SMBgemb(md.mesh,md.geometry);
    1111md.smb.dsnowIdx = 4;
     12md.smb.swIdx = 1;
    1213
    1314%load hourly surface forcing date from 1979 to 2009:
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test252.py

    r27167 r27196  
    2323md.smb = SMBgemb(md.mesh, md.geometry)
    2424md.smb.dsnowIdx = 4
     25md.smb.swIdx = 1
    2526
    2627#load hourly surface forcing date from 1979 to 2009:
Note: See TracChangeset for help on using the changeset viewer.