Changeset 23130
- Timestamp:
- 08/18/18 14:05:21 (7 years ago)
- Location:
- issm/trunk-jpl/test/NightlyRun
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/runme.py
r22104 r23130 183 183 if str(archive) == 'None': 184 184 raise NameError("Field name '"+archive_name+'_field'+str(k+1)+"' does not exist in archive file.") 185 if np.shape(field) != np.shape(archive) and not np.shape(field) in [(1,1),(0,0),(1,0),(0,1)]: 186 field = field.T 187 if np.shape(field) != np.shape(archive): 188 raise RuntimeError("Field '"+archive_name+"' from test is malformed; shape is "+str(np.shape(field.T))+", should be "+str(np.shape(archive))+" (or "+str(np.shape(archive.T))+").") 189 185 190 error_diff=np.amax(np.abs(archive-field),axis=0)/(np.amax(np.abs(archive),axis=0)+float_info.epsilon) 191 186 192 if not np.isscalar(error_diff): error_diff=error_diff[0] 187 193 -
issm/trunk-jpl/test/NightlyRun/test511.py
r21408 r23130 8 8 from setflowequation import * 9 9 from solve import * 10 11 10 12 11 md=triangle(model(),'../Exp/Pig.exp',11000.) … … 41 40 field_names =['Gradient','Misfits','MaterialsRheologyB','Pressure','Vel','Vx','Vy'] 42 41 field_tolerances=[5e-11,5e-11,5e-11,1e-09,1e-11,5e-11,1e-11] 43 field_values=[ \44 md.results.StressbalanceSolution.Gradient1, \45 md.results.StressbalanceSolution.J, \46 md.results.StressbalanceSolution.MaterialsRheologyBbar, \47 md.results.StressbalanceSolution.Pressure, \48 md.results.StressbalanceSolution.Vel, \49 md.results.StressbalanceSolution.Vx, \50 md.results.StressbalanceSolution.Vy, \42 field_values=[ 43 md.results.StressbalanceSolution.Gradient1, 44 md.results.StressbalanceSolution.J, 45 md.results.StressbalanceSolution.MaterialsRheologyBbar, 46 md.results.StressbalanceSolution.Pressure, 47 md.results.StressbalanceSolution.Vel, 48 md.results.StressbalanceSolution.Vx, 49 md.results.StressbalanceSolution.Vy, 51 50 ] -
issm/trunk-jpl/test/NightlyRun/test613.py
r21408 r23130 19 19 20 20 #Ice sheet only 21 md=m d.extract(md.mask.groundedice_levelset>0.)21 md=model.extract(md,md.mask.groundedice_levelset>0.) 22 22 pos=np.nonzero(md.mesh.vertexonboundary) 23 23 md.balancethickness.spcthickness[pos]=md.geometry.thickness[pos] -
issm/trunk-jpl/test/NightlyRun/test703.py
r23016 r23130 59 59 md.stressbalance.spcvz = np.nan * np.ones((md.mesh.numberofvertices)) 60 60 md.stressbalance.referential = np.nan * np.ones((md.mesh.numberofvertices,6)) 61 md.stressbalance.loadingforce = 0 * np.ones((md.mesh.numberofvertices,3))61 md.stressbalance.loadingforce = np.zeros((md.mesh.numberofvertices,3)) 62 62 md.stressbalance.spcvx[np.where(md.mesh.vertexflags(4))] = 800. 63 63 md.stressbalance.spcvy[np.where(md.mesh.vertexflags(4))] = 0.
Note:
See TracChangeset
for help on using the changeset viewer.