Changeset 12853


Ignore:
Timestamp:
08/01/12 15:27:39 (13 years ago)
Author:
jschierm
Message:

Minor changes for test101.py.

Location:
issm/trunk-jpl/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/runme.py

    r12828 r12853  
    77import netCDF4
    88import sys
    9 
    10 from parallelrange import parallelrange
    11 from IdToName import IdToName
    129
    1310def runme(id=None,exclude=None,benchmark='nightly',procedure='check',output='none',rank=1,numprocs=1):
     
    4239               md=runme(id=102,procedure='update')
    4340        """
     41
     42        from parallelrange import parallelrange
     43        from IdToName import IdToName
    4444
    4545        #Get ISSM_DIR variable
  • issm/trunk-jpl/test/Par/SquareShelfConstrained.par

    r9734 r12853  
    5050md=SetIceShelfBC(md);
    5151
    52 %Change name so that no test have the same name
     52%Change name so that no tests have the same name
    5353A=dbstack;
    5454if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
  • issm/trunk-jpl/test/Par/SquareShelfConstrained.py

    r12848 r12853  
    44import InterpFromMeshToMesh2d as im
    55from   paterson import  *
     6from SetIceShelfBC import *
     7import inspect
    68
    79#Start defining model parameters here
     
    1921mat=matio.loadmat('../Data/SquareShelfConstrained.data')
    2022#Reshape as Rank-1 arrays
    21 x=reshape(mat['x'],(size(mat['x']),))
    22 y=reshape(mat['y'],(size(mat['y']),))
     23x=reshape(mat['x'],(-1))
     24y=reshape(mat['y'],(-1))
    2325vx=mat['vx']
    2426vy=mat['vy']
     
    5860#Deal with boundary conditions:
    5961md = 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
     63if len(inspect.stack()) > 2:
     64    md.miscellaneous.name = inspect.stack()[2][1].split('.')[0]
    6465
Note: See TracChangeset for help on using the changeset viewer.