source: issm/trunk-jpl/test/NightlyRun/test410.py@ 13679

Last change on this file since 13679 was 13679, checked in by Mathieu Morlighem, 12 years ago

NEW: added more python tests, from 405 to 419 (some are missing due to dakota)

File size: 1.1 KB
Line 
1import numpy
2from model import *
3from EnumDefinitions import *
4from MatlabFuncs import *
5from triangle import *
6from setmask import *
7from parameterize import *
8from setflowequation import *
9from solve import *
10
11md=triangle(model(),'../Exp/Square.exp',150000.)
12md=setmask(md,'../Exp/SquareShelf.exp','')
13md=parameterize(md,'../Par/SquareSheetShelf.py')
14md.extrude(3,2.)
15md=setflowequation(md,'macayeal','all')
16md.cluster=generic('name',oshostname(),'np',3)
17md.timestepping.time_step=0
18md=solve(md,SteadystateSolutionEnum())
19
20#Fields and tolerances to track changes
21field_names =['Vx','Vy','Vz','Vel','Pressure','Temperature','BasalforcingsMeltingRate']
22field_tolerances=[1e-10,1e-10,1e-09,1e-10,1e-13,1e-10,1e-06]
23field_values=[\
24 md.results['SteadystateSolution'][1]['Vx'],\
25 md.results['SteadystateSolution'][1]['Vy'],\
26 md.results['SteadystateSolution'][1]['Vz'],\
27 md.results['SteadystateSolution'][1]['Vel'],\
28 md.results['SteadystateSolution'][1]['Pressure'],\
29 md.results['SteadystateSolution'][1]['Temperature'],\
30 md.results['SteadystateSolution'][1]['BasalforcingsMeltingRate'],\
31 ]
Note: See TracBrowser for help on using the repository browser.