Changeset 12853
- Timestamp:
- 08/01/12 15:27:39 (13 years ago)
- Location:
- issm/trunk-jpl/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/runme.py
r12828 r12853 7 7 import netCDF4 8 8 import sys 9 10 from parallelrange import parallelrange11 from IdToName import IdToName12 9 13 10 def runme(id=None,exclude=None,benchmark='nightly',procedure='check',output='none',rank=1,numprocs=1): … … 42 39 md=runme(id=102,procedure='update') 43 40 """ 41 42 from parallelrange import parallelrange 43 from IdToName import IdToName 44 44 45 45 #Get ISSM_DIR variable -
issm/trunk-jpl/test/Par/SquareShelfConstrained.par
r9734 r12853 50 50 md=SetIceShelfBC(md); 51 51 52 %Change name so that no test have the same name52 %Change name so that no tests have the same name 53 53 A=dbstack; 54 54 if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end -
issm/trunk-jpl/test/Par/SquareShelfConstrained.py
r12848 r12853 4 4 import InterpFromMeshToMesh2d as im 5 5 from paterson import * 6 from SetIceShelfBC import * 7 import inspect 6 8 7 9 #Start defining model parameters here … … 19 21 mat=matio.loadmat('../Data/SquareShelfConstrained.data') 20 22 #Reshape as Rank-1 arrays 21 x=reshape(mat['x'],( size(mat['x']),))22 y=reshape(mat['y'],( size(mat['y']),))23 x=reshape(mat['x'],(-1)) 24 y=reshape(mat['y'],(-1)) 23 25 vx=mat['vx'] 24 26 vy=mat['vy'] … … 58 60 #Deal with boundary conditions: 59 61 md = SetIceShelfBC(md) 60 #Change name so that no test have the same name 61 A = dbstack 62 if length(A) > 2.: 63 md.miscellaneous.name = A[2].file[0:0-2.] 62 #Change name so that no tests have the same name 63 if len(inspect.stack()) > 2: 64 md.miscellaneous.name = inspect.stack()[2][1].split('.')[0] 64 65
Note:
See TracChangeset
for help on using the changeset viewer.