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