source:
issm/oecreview/Archive/12678-13393/ISSM-13069-13070.diff@
13980
Last change on this file since 13980 was 13394, checked in by , 13 years ago | |
---|---|
File size: 2.3 KB |
-
u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/test/Par/SquareShelfConstrained.py
1 1 from numpy import * 2 2 from verbose import * 3 3 import scipy.io as matio 4 import InterpFromMeshToMesh2d as im 5 from 4 from InterpFromMeshToMesh2d import InterpFromMeshToMesh2d 5 from paterson import * 6 6 from SetIceShelfBC import * 7 7 import inspect 8 import os.path 8 9 9 10 #Start defining model parameters here 10 11 #Geometry … … 28 29 index=mat['index'].astype(float) 29 30 index=reshape(index.T,(len(index),3),order='F') 30 31 31 md.initialization.vx = im.InterpFromMeshToMesh2d(index, x, y, vx, md.mesh.x, md.mesh.y)32 md.initialization.vy = im.InterpFromMeshToMesh2d(index, x, y, vy, md.mesh.x, md.mesh.y)32 [md.initialization.vx] = InterpFromMeshToMesh2d(index, x, y, vx, md.mesh.x, md.mesh.y) 33 [md.initialization.vy] = InterpFromMeshToMesh2d(index, x, y, vy, md.mesh.x, md.mesh.y) 33 34 md.initialization.vz = zeros(md.mesh.numberofvertices) 34 35 md.initialization.pressure = zeros(md.mesh.numberofvertices) 35 36 #Materials … … 61 62 md = SetIceShelfBC(md) 62 63 #Change name so that no tests have the same name 63 64 if len(inspect.stack()) > 2: 64 md.miscellaneous.name = inspect.stack()[2][1].split('.')[0]65 md.miscellaneous.name = os.path.basename(inspect.stack()[2][1]).split('.')[0] 65 66 -
u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/test/NightlyRun/test101.py
13 13 md=parameterize(md,'../Par/SquareShelfConstrained.py') 14 14 md=setflowequation(md,'macayeal','all') 15 15 md.cluster=generic('name',oshostname(),'np',3) 16 md.diagnostic.requested_outputs=StressTensorEnum 17 md=solve(md,DiagnosticSolutionEnum )16 md.diagnostic.requested_outputs=StressTensorEnum() 17 md=solve(md,DiagnosticSolutionEnum()) 18 18 19 19 #Fields and tolerances to track changes 20 20 field_names =['Vx','Vy','Vel','Pressure',\
Note:
See TracBrowser
for help on using the repository browser.