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