source: issm/trunk-jpl/test/NightlyRun/test3002.py@ 23746

Last change on this file since 23746 was 23746, checked in by jdquinn, 6 years ago

CHG: Explicitly adding solvers to toolkits property of model for Python versions of ADOL-C tests.

File size: 957 bytes
Line 
1#Test Name: SquareShelfConstrainedStressSSA3dAdolc
2from model import *
3from socket import gethostname
4from triangle import *
5from setmask import *
6from parameterize import *
7from setflowequation import *
8from solve import *
9from issmgslsolver import issmgslsolver
10
11
12md=triangle(model(),'../Exp/Square.exp',180000.)
13md=setmask(md,'all','')
14md=parameterize(md,'../Par/SquareShelfConstrained.py')
15md.extrude(3,2.)
16md=setflowequation(md,'SSA','all')
17md.cluster=generic('name',gethostname(),'np',1)
18md.autodiff.isautodiff=True
19md.toolkits.DefaultAnalysis=issmgslsolver()
20md=solve(md,'Stressbalance')
21
22#Fields and tolerances to track changes
23field_names =['Vx','Vy','Vz','Vel','Pressure']
24field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13]
25field_values=[\
26 md.results.StressbalanceSolution.Vx,\
27 md.results.StressbalanceSolution.Vy,\
28 md.results.StressbalanceSolution.Vz,\
29 md.results.StressbalanceSolution.Vel,\
30 md.results.StressbalanceSolution.Pressure,\
31 ]
Note: See TracBrowser for help on using the repository browser.