source: issm/trunk-jpl/test/NightlyRun/test342.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.3 KB
Line 
1#Test Name: SquareSheetTherSteaPlume
2import numpy as np
3from model import *
4from socket import gethostname
5from triangle import *
6from setmask import *
7from parameterize import *
8from setflowequation import *
9from solve import *
10from plumebasalforcings import *
11
12md = triangle(model(), '../Exp/Square.exp', 180000.)
13md = setmask(md, '', '')
14md = parameterize(md, '../Par/SquareSheetConstrained.py')
15md.basalforcings = plumebasalforcings()
16md.basalforcings = md.basalforcings.setdefaultparameters()
17md.basalforcings.floatingice_melting_rate = np.zeros((md.mesh.numberofvertices, ))
18md.basalforcings.groundedice_melting_rate = np.zeros((md.mesh.numberofvertices, ))
19md.basalforcings.plumex = 500000
20md.basalforcings.plumey = 500000
21md.extrude(3, 1.)
22md = setflowequation(md, 'SSA', 'all')
23md.timestepping.time_step = 0.
24md.thermal.requested_outputs = ['default', 'BasalforcingsGeothermalflux']
25md.cluster = generic('name', gethostname(), 'np', 3)
26md = solve(md, 'Thermal')
27
28#Fields and tolerances to track changes
29field_names = ['Temperature', 'BasalforcingsGroundediceMeltingRate', 'BasalforcingsGeothermalflux']
30field_tolerances = [1e-13, 1e-8, 1e-13]
31field_values = [md.results.ThermalSolution.Temperature,
32 md.results.ThermalSolution.BasalforcingsGroundediceMeltingRate,
33 md.results.ThermalSolution.BasalforcingsGeothermalflux]
Note: See TracBrowser for help on using the repository browser.