Changeset 24588
- Timestamp:
- 02/26/20 08:01:36 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBd18opdd.py
r24583 r24588 141 141 multt = np.ceil(lent / 12.) * 12. 142 142 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) 145 145 146 146 if self.istemperaturescaled == 0: -
issm/trunk-jpl/test/NightlyRun/test236.py
r24584 r24588 30 30 # Same temperature over the all region: 31 31 tmonth = 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))32 md.smb.temperatures_presentday = np.zeros((md.mesh.numberofvertices, 12)) 33 md.smb.temperatures_lgm = np.zeros((md.mesh.numberofvertices, 12)) 34 34 for imonth in range(0, 12): 35 35 md.smb.temperatures_presentday[0:md.mesh.numberofvertices, imonth] = tmonth[imonth] -
issm/trunk-jpl/test/NightlyRun/test237.py
r24585 r24588 44 44 45 45 # 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))46 md.smb.precipitations_presentday = np.zeros((md.mesh.numberofvertices, 12)) 47 md.smb.precipitations_lgm = np.zeros((md.mesh.numberofvertices, 12)) 48 48 for imonth in range(0, 12): 49 49 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 37 37 38 38 # creating precipitation 39 md.smb.precipitations_presentday = np.zeros((md.mesh.numberofvertices + 1, 12))39 md.smb.precipitations_presentday = np.zeros((md.mesh.numberofvertices, 12)) 40 40 for imonth in range(0, 12): 41 41 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.