source: issm/oecreview/Archive/23185-23389/ISSM-23368-23369.diff@ 23390

Last change on this file since 23390 was 23390, checked in by Mathieu Morlighem, 6 years ago

CHG: added Archive/23185-23389

File size: 2.9 KB
RevLine 
[23390]1Index: ../trunk-jpl/test/NightlyRun/runme.py
2===================================================================
3--- ../trunk-jpl/test/NightlyRun/runme.py (revision 23368)
4+++ ../trunk-jpl/test/NightlyRun/runme.py (revision 23369)
5@@ -10,7 +10,7 @@
6 def runme(id=None,exclude=None,benchmark='nightly',procedure='check',output='none',rank=1,numprocs=1):
7 """
8 RUNME - test deck for ISSM nightly runs
9-
10+
11 In a test deck directory (tests/Vertification/NightlyRun for example)
12 The following command will launch all the existing tests:
13 >> runme()
14@@ -17,7 +17,7 @@
15 To run the tests 101 and 102:
16 >> runme(id=[101,102])
17 etc...
18-
19+
20 Available options:
21 'id' followed by the list of ids or (parts of) test names requested
22 Note: runs all tests by default
23@@ -36,10 +36,10 @@
24
25 'procedure' 'check' : run the test (default)
26 'update': update the archive
27-
28+
29 Usage:
30 runme(varargin)
31-
32+
33 Examples:
34 runme()
35 runme(101)
36@@ -48,7 +48,6 @@
37 runme(exclude='Dakota',benchmark='all')
38 runme(id=[[101,102],['Dakota','Slr']])
39 """
40-
41 from parallelrange import parallelrange
42 from IdToName import IdToName
43 from arch import archread
44@@ -84,13 +83,13 @@
45
46 i1,i2=parallelrange(rank,numprocs,len(list_ids)) #Get tests for this cpu only
47 list_ids=list_ids[i1:i2+1]
48-
49- if np.size(id) > 0:
50+
51+ if np.size(id) > 0 and not id==None:
52 test_ids = set(GetIds(id)).intersection(set(list_ids))
53 else:
54 # if no tests are specifically provided, do them all
55 test_ids = set(list_ids)
56-
57+
58 # }}}
59 #GET exclude {{{
60 exclude_ids = GetIds(exclude)
61@@ -182,7 +181,7 @@
62 field = field.T
63 if np.shape(field) != np.shape(archive):
64 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))+").")
65-
66+
67 error_diff=np.amax(np.abs(archive-field),axis=0)/(np.amax(np.abs(archive),axis=0)+float_info.epsilon)
68
69 if not np.isscalar(error_diff): error_diff=error_diff[0]
70Index: ../trunk-jpl/test/NightlyRun/test101.m
71===================================================================
72--- ../trunk-jpl/test/NightlyRun/test101.m (revision 23368)
73+++ ../trunk-jpl/test/NightlyRun/test101.m (revision 23369)
74@@ -3,7 +3,8 @@
75 md=setmask(md,'all','');
76 md=parameterize(md,'../Par/SquareShelfConstrained.par');
77 md=setflowequation(md,'SSA','all');
78-md.cluster=generic('name',oshostname(),'np',2);
79+md.cluster=stallo('numnodes',1,'cpuspernode',16,'time',60,'queue','devel')
80+%md.cluster=generic('name',oshostname(),'np',2);
81
82 %output
83 md.stressbalance.requested_outputs={'default','DeviatoricStressxx','DeviatoricStressyy','DeviatoricStressxy','MassFlux1','MassFlux2','MassFlux3','MassFlux4','MassFlux5','MassFlux6'};
Note: See TracBrowser for help on using the repository browser.