Changeset 24760 for issm/trunk-jpl/test/NightlyRun/test243.py
- Timestamp:
- 04/29/20 14:07:15 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test243.py
r24735 r24760 21 21 md.smb = SMBgemb() 22 22 md.smb.setdefaultparameters(md.mesh, md.geometry) 23 md.smb.dsnowIdx = 023 md.smb.dsnowIdx = 1 24 24 25 25 #load hourly surface forcing date from 1979 to 2009: … … 60 60 md = solve(md, 'Transient') 61 61 62 nlayers=np.size(md.results.TransientSolution[-1].SmbT,1) 62 nlayers=np.size(md.results.TransientSolution[0].SmbT,1) 63 for i in range(1, np.size(md.results.TransientSolution,0)): 64 nlayers=np.minimum(np.size(md.results.TransientSolution[i].SmbT,1),nlayers) 63 65 64 66 #Fields and tolerances to track changes 65 67 field_names = ['Layers','SmbDz', 'SmbT', 'SmbD', 'SmbRe', 'SmbGdn', 'SmbGsp', 'SmbA', 'SmbEC', 'SmbMassBalance', 'SmbMAdd', 'SmbDzAdd', 'SmbFAC', 'SmbMeanSHF', 'SmbMeanLHF', 'SmbMeanULW', 'SmbNetLW', 'SmbNetSW'] 66 field_tolerances = [1e-12, 1e-12,1e-12,1e-11,1e-11,1e-11,1e-11,1e-12,1e-11,1e-12,1e-12,1e-12,1e-11,2e-11,2e-11,1e-11,9e-10,2e-11]68 field_tolerances = [1e-12,2e-12,1e-12,1e-11,1e-11,2e-11,1e-11,1e-12,1e-11,1e-12,1e-12,1e-12,1e-11,2e-11,2e-11,1e-11,9e-10,2e-11] 67 69 #shape is different in python solution (fixed using reshape) which can cause test failure: 68 70 field_values = [nlayers,md.results.TransientSolution[-1].SmbDz[0, 0:nlayers].reshape(1, -1),
Note:
See TracChangeset
for help on using the changeset viewer.