1 | #Test Name: GiaIvinsBenchmarksAB2dC1
|
---|
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 = 1 # for square-edged x - section
|
---|
17 |
|
---|
18 | #define loading history
|
---|
19 | md.timestepping.start_time = 0.3 # for t \approx 0 kyr : to get eleastic response!
|
---|
20 | md.timestepping.final_time = 2500000 # 2, 500 kyr
|
---|
21 | md.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
|
---|
25 |
|
---|
26 | #solve for GIA deflection
|
---|
27 | md.cluster = generic('name', gethostname(), 'np', 3)
|
---|
28 | md.verbose = verbose('1111111')
|
---|
29 | md = solve(md, 'Gia')
|
---|
30 |
|
---|
31 | #Fields and tolerances to track changes
|
---|
32 | field_names = ['GiaW', 'GiadWdt']
|
---|
33 | field_tolerances = [1e-13, 1e-13]
|
---|
34 | field_values = [md.results.GiaSolution.GiaW, md.results.GiaSolution.GiadWdt]
|
---|