source:
issm/oecreview/Archive/23185-23389/ISSM-23368-23369.diff@
23390
Last change on this file since 23390 was 23390, checked in by , 6 years ago | |
---|---|
File size: 2.9 KB |
-
../trunk-jpl/test/NightlyRun/runme.py
10 10 def runme(id=None,exclude=None,benchmark='nightly',procedure='check',output='none',rank=1,numprocs=1): 11 11 """ 12 12 RUNME - test deck for ISSM nightly runs 13 13 14 14 In a test deck directory (tests/Vertification/NightlyRun for example) 15 15 The following command will launch all the existing tests: 16 16 >> runme() … … 17 17 To run the tests 101 and 102: 18 18 >> runme(id=[101,102]) 19 19 etc... 20 20 21 21 Available options: 22 22 'id' followed by the list of ids or (parts of) test names requested 23 23 Note: runs all tests by default … … 36 36 37 37 'procedure' 'check' : run the test (default) 38 38 'update': update the archive 39 39 40 40 Usage: 41 41 runme(varargin) 42 42 43 43 Examples: 44 44 runme() 45 45 runme(101) … … 48 48 runme(exclude='Dakota',benchmark='all') 49 49 runme(id=[[101,102],['Dakota','Slr']]) 50 50 """ 51 52 51 from parallelrange import parallelrange 53 52 from IdToName import IdToName 54 53 from arch import archread … … 84 83 85 84 i1,i2=parallelrange(rank,numprocs,len(list_ids)) #Get tests for this cpu only 86 85 list_ids=list_ids[i1:i2+1] 87 88 if np.size(id) > 0 :86 87 if np.size(id) > 0 and not id==None: 89 88 test_ids = set(GetIds(id)).intersection(set(list_ids)) 90 89 else: 91 90 # if no tests are specifically provided, do them all 92 91 test_ids = set(list_ids) 93 92 94 93 # }}} 95 94 #GET exclude {{{ 96 95 exclude_ids = GetIds(exclude) … … 182 181 field = field.T 183 182 if np.shape(field) != np.shape(archive): 184 183 raise RuntimeError("Field '"+archive_name+"' from test is malformed; shape is "+str(np.shape(field.T))+", should be "+str(np.shape(archive))+" (or "+str(np.shape(archive.T))+").") 185 184 186 185 error_diff=np.amax(np.abs(archive-field),axis=0)/(np.amax(np.abs(archive),axis=0)+float_info.epsilon) 187 186 188 187 if not np.isscalar(error_diff): error_diff=error_diff[0] -
../trunk-jpl/test/NightlyRun/test101.m
3 3 md=setmask(md,'all',''); 4 4 md=parameterize(md,'../Par/SquareShelfConstrained.par'); 5 5 md=setflowequation(md,'SSA','all'); 6 md.cluster=generic('name',oshostname(),'np',2); 6 md.cluster=stallo('numnodes',1,'cpuspernode',16,'time',60,'queue','devel') 7 %md.cluster=generic('name',oshostname(),'np',2); 7 8 8 9 %output 9 10 md.stressbalance.requested_outputs={'default','DeviatoricStressxx','DeviatoricStressyy','DeviatoricStressxy','MassFlux1','MassFlux2','MassFlux3','MassFlux4','MassFlux5','MassFlux6'};
Note:
See TracBrowser
for help on using the repository browser.