source: issm/trunk-jpl/test/NightlyRun/test342.py@ 22267

Last change on this file since 22267 was 22267, checked in by kruegern, 7 years ago

ADD: added python versions and dependecies for tests: 243,260,261,293,340,342,343,344,350,430,435,436,437,438,439,441,442,460,461,462,463,464,465,540,701,808,2424,2425

File size: 1.3 KB
RevLine 
[22267]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 = [
32 md.results.ThermalSolution.Temperature,
33 md.results.ThermalSolution.BasalforcingsGroundediceMeltingRate,
34 md.results.ThermalSolution.BasalforcingsGeothermalflux,
35 ]
Note: See TracBrowser for help on using the repository browser.