source: issm/branches/trunk-larour-NatGeoScience2016/test/NightlyRun/test611.py@ 21243

Last change on this file since 21243 was 21060, checked in by Mathieu Morlighem, 9 years ago

CHG: no more enums in python

File size: 1.5 KB
Line 
1#Test Name: 79NorthCMBalThic2dCG
2import numpy
3from model import *
4from MatlabFuncs import *
5from triangle import *
6from setmask import *
7from parameterize import *
8from setflowequation import *
9from solve import *
10
11md=triangle(model(),'../Exp/79North.exp',10000.)
12md=setmask(md,'../Exp/79NorthShelf.exp','')
13md=parameterize(md,'../Par/79North.py')
14md=setflowequation(md,'SSA','all')
15
16#control parameters
17md.inversion.nsteps=2
18md.masstransport.stabilization=1
19md.inversion.iscontrol=1
20md.inversion.control_parameters=['BalancethicknessThickeningRate']
21md.inversion.thickness_obs=md.geometry.thickness
22md.inversion.min_parameters=-50.*numpy.ones((md.mesh.numberofvertices,1))
23md.inversion.max_parameters=50.*numpy.ones((md.mesh.numberofvertices,1))
24md.inversion.cost_functions=[201]
25md.inversion.cost_functions_coefficients=numpy.ones((md.mesh.numberofvertices,1))
26md.inversion.gradient_scaling=10./md.constants.yts*numpy.ones((md.inversion.nsteps,1))
27md.inversion.maxiter_per_step=4*numpy.ones((md.inversion.nsteps,1))
28md.inversion.step_threshold=0.99*numpy.ones((md.inversion.nsteps,1))
29
30md.cluster=generic('name',oshostname(),'np',3)
31md=solve(md,'Balancethickness')
32
33#Fields and tolerances to track changes
34field_names =['Gradient','Misfits','BalancethicknessThickeningRate','Thickness']
35field_tolerances=[1e-12,1e-12,1e-12,1e-12,1e-12,1e-12]
36field_values=[\
37 md.results.BalancethicknessSolution.Gradient1,\
38 md.results.BalancethicknessSolution.J,\
39 md.results.BalancethicknessSolution.BalancethicknessThickeningRate,\
40 md.results.BalancethicknessSolution.Thickness
41]
Note: See TracBrowser for help on using the repository browser.