source: issm/trunk-jpl/test/NightlyRun/test1202.py@ 24214

Last change on this file since 24214 was 24214, checked in by bdef, 5 years ago

CHG: syntax cahnge to meet most of Pep8 requirement

File size: 1.8 KB
Line 
1#Test Name: EISMINTStress1
2from model import *
3from socket import gethostname
4from triangle import *
5from setmask import *
6from parameterize import *
7from setflowequation import *
8from solve import *
9
10
11"""
12Test on the stressbalance model and the masstransport in 2d
13"""
14
15printingflag = False
16
17#tests 3 and 4: using Glen's flow law
18md = model()
19md = triangle(md, '../Exp/SquareEISMINT.exp', 3550.)
20md = setmask(md, 'all', '')
21md = parameterize(md, '../Par/SquareEISMINT.py')
22md = setflowequation(md, 'SSA', 'all') #SSA's model and 2d
23
24#Compute solution for SSA's model
25md.cluster = generic('name', gethostname(), 'np', 8)
26md = solve(md, 'Stressbalance')
27
28#plot results
29vx = md.results.StressbalanceSolution.Vx
30vy = md.results.StressbalanceSolution.Vy
31
32#plotmodel(md, 'data', vx, 'contourlevels', {0, 20, 40, 60, 60, 100, 120, 140, 160, 180, - 20, - 40, - 60, - 80, - 100, - 120, - 140, - 160, - 180}, ...
33# 'contourcolor', 'k')
34if printingflag:
35 pass
36# set(gcf, 'Color', 'w')
37# printmodel('eismintdiag1vx', 'png', 'margin', 'on', 'marginsize', 25, 'frame', 'off', 'resolution', 2, 'hardcopy', 'off')
38# system(['mv eismintdiag1vx.png ' ISSM_DIR '/website/doc_pdf/validation/Images/EISMINT/IceShelf '])
39
40#plotmodel(md, 'data', vy, 'contourlevels', { - 100, - 200, - 300, - 400, - 500, - 600, - 700, - 800, - 900, - 1000}, ...
41# 'contourcolor', 'k')
42if printingflag:
43 pass
44# set(gcf, 'Color', 'w')
45# printmodel('eismintdiag1vy', 'png', 'margin', 'on', 'marginsize', 25, 'frame', 'off', 'resolution', 2, 'hardcopy', 'off')
46# system(['mv eismintdiag1vy.png ' ISSM_DIR '/website/doc_pdf/validation/Images/EISMINT/IceShelf '])
47
48#Fields and tolerances to track changes
49field_names = ['Vx', 'Vy']
50field_tolerances = [1e-13, 1e-13]
51field_values = [vx, vy]
Note: See TracBrowser for help on using the repository browser.