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

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

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

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