Changeset 24588


Ignore:
Timestamp:
02/26/20 08:01:36 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing python tests

Location:
issm/trunk-jpl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/SMBd18opdd.py

    r24583 r24588  
    141141                multt = np.ceil(lent / 12.) * 12.
    142142                multp = np.ceil(lenp / 12.) * 12.
    143                 md = checkfield(md, 'fieldname', 'smb.temperatures_presentday', 'size', [md.mesh.numberofvertices, 12], 'NaN', 1, 'Inf', 1, 'timeseries', 1)
    144                 md = checkfield(md, 'fieldname', 'smb.precipitations_presentday', 'size', [md.mesh.numberofvertices, 12], 'NaN', 1, 'Inf', 1, 'timeseries', 1)
     143                md = checkfield(md, 'fieldname', 'smb.temperatures_presentday', 'size', [md.mesh.numberofvertices, 12], 'NaN', 1, 'Inf', 1)
     144                md = checkfield(md, 'fieldname', 'smb.precipitations_presentday', 'size', [md.mesh.numberofvertices, 12], 'NaN', 1, 'Inf', 1)
    145145
    146146                if self.istemperaturescaled == 0:
  • issm/trunk-jpl/test/NightlyRun/test236.py

    r24584 r24588  
    3030# Same temperature over the all region:
    3131tmonth = np.ones(12) * (238.15 + 20.)
    32 md.smb.temperatures_presentday = np.zeros((md.mesh.numberofvertices + 1, 12))
    33 md.smb.temperatures_lgm = np.zeros((md.mesh.numberofvertices + 1, 12))
     32md.smb.temperatures_presentday = np.zeros((md.mesh.numberofvertices, 12))
     33md.smb.temperatures_lgm = np.zeros((md.mesh.numberofvertices, 12))
    3434for imonth in range(0, 12):
    3535    md.smb.temperatures_presentday[0:md.mesh.numberofvertices, imonth] = tmonth[imonth]
  • issm/trunk-jpl/test/NightlyRun/test237.py

    r24585 r24588  
    4444
    4545# creating precipitation
    46 md.smb.precipitations_presentday = np.zeros((md.mesh.numberofvertices + 1, 12))
    47 md.smb.precipitations_lgm = np.zeros((md.mesh.numberofvertices + 1, 12))
     46md.smb.precipitations_presentday = np.zeros((md.mesh.numberofvertices, 12))
     47md.smb.precipitations_lgm = np.zeros((md.mesh.numberofvertices, 12))
    4848for imonth in range(0, 12):
    4949    md.smb.precipitations_presentday[0:md.mesh.numberofvertices, imonth] = -0.4 * 10**(-6) * md.mesh.y + 0.5
  • issm/trunk-jpl/test/NightlyRun/test238.py

    r24585 r24588  
    3737
    3838# creating precipitation
    39 md.smb.precipitations_presentday = np.zeros((md.mesh.numberofvertices + 1, 12))
     39md.smb.precipitations_presentday = np.zeros((md.mesh.numberofvertices, 12))
    4040for imonth in range(0, 12):
    4141    md.smb.precipitations_presentday[0:md.mesh.numberofvertices, imonth] = -0.4 * 10**(-6) * md.mesh.y + 0.5
Note: See TracChangeset for help on using the changeset viewer.