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

Last change on this file since 16192 was 16192, checked in by Eric.Larour, 12 years ago

CHG: adjusted adolc tests to work only with gsl. Also added _HAVE_GSL_ as config flag detectable by IssmConfig wrapper.
Finally, created some new src/m/solvers to setup issm mumps and gsl solvers.

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