source: issm/trunk-jpl/test/NightlyRun/test3002.py@ 13455

Last change on this file since 13455 was 13455, checked in by mikep, 12 years ago

t cases 201, 3001..3010. Conversion of SquareShelf.par to .py. Creation of matlab script -> python script conversion tool {/scripts/mToPy.py}. Modification of modules/python/Makefile.am to support use of ContourToMesh[cpp]. Utilization of deep copy when marshaling flowequation data. Add support of ice-front-file specification [as param] to SetIceShelfBC.

File size: 1.3 KB
Line 
1"""
2== == == == == == == == == == == == == == == == == == ==
3Auto generated python script for ISSM: test3002.m
4Created on 2012-09-25 via translateToPy.py Ver 1.0 by mikep
5== == == == == == == == == == == == == == == == == == ==
6
7Matlab script conversion into python
8translateToPy.py Author: Michael Pellegrin
9translateToPy.py Date: 09/24/12
10== == == == == == == == == == == == == == == == == == ==
11"""
12
13from MatlabFuncs import *
14from model import *
15from EnumDefinitions import *
16import numpy
17from triangle import *
18from setmask import *
19from parameterize import *
20from setflowequation import *
21from solve import *
22
23md=triangle(model(),'../Exp/Square.exp',180000)
24md=setmask(md,'all','')
25md=parameterize(md,'../Par/SquareShelfConstrained.py')
26md.extrude(3,2)
27md=setflowequation(md,'macayeal','all')
28md.cluster=generic('name',oshostname(),'np',3)
29md.autodiff.isautodiff=true
30md=solve(md,DiagnosticSolutionEnum())
31
32
33# Fields and tolerances to track changes
34
35field_names =['Vx','Vy','Vz','Vel','Pressure']
36field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13]
37field_values=[\
38 md.results['DiagnosticSolution'][1]['Vx'],\
39 md.results['DiagnosticSolution'][1]['Vy'],\
40 md.results['DiagnosticSolution'][1]['Vz'],\
41 md.results['DiagnosticSolution'][1]['Vel'],\
42 md.results['DiagnosticSolution'][1]['Pressure'],\
43 ]
Note: See TracBrowser for help on using the repository browser.