source: issm/trunk-jpl/test/NightlyRun/test2071.py@ 23793

Last change on this file since 23793 was 23793, checked in by bdef, 6 years ago

pep8 compliance of NTs

File size: 1.3 KB
RevLine 
[22134]1#Test Name: GiaIvinsBenchmarksAB2dC1
2import numpy as np
3from model import *
4from socket import gethostname
5from solve import *
6from triangle import *
7from setmask import *
8from parameterize import *
9
[23793]10#Benchmark experiments (Figure A2c Ivins and James, 1999, Geophys. J. Int.)
11md = triangle(model(), '../Exp/RoundFrontEISMINT.exp', 200000)
12md = setmask(md, '', '')
13md = parameterize(md, '../Par/GiaIvinsBenchmarksCD.py')
[22134]14
[23793]15#indicate what you want to compute
16md.gia.cross_section_shape = 1 # for square-edged x-section
[22134]17
[23793]18#define loading history
19md.timestepping.start_time = 0.3 # for t \approx 0 kyr : to get eleastic response!
20md.timestepping.final_time = 2500000 # 2, 500 kyr
21md.geometry.thickness = np.array([np.append(md.geometry.thickness * 0.0, 0.0),
22 np.append(md.geometry.thickness / 2.0, 0.1),
23 np.append(md.geometry.thickness, 0.2),
24 np.append(md.geometry.thickness, md.timestepping.start_time)]).T
[22134]25
[23793]26#solve for GIA deflection
27md.cluster = generic('name', gethostname(), 'np', 3)
[22134]28md.verbose = verbose('1111111')
[23793]29md = solve(md, 'Gia')
[22134]30
31#Fields and tolerances to track changes
[23793]32field_names = ['GiaW', 'GiadWdt']
33field_tolerances = [1e-13, 1e-13]
[22134]34field_values = [md.results.GiaSolution.GiaW, md.results.GiaSolution.GiadWdt]
Note: See TracBrowser for help on using the repository browser.