Changeset 25515
- Timestamp:
- 09/02/20 14:10:08 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/ross-debian_linux-solid_earth
r25434 r25515 80 80 # 81 81 MATLAB_NROPTIONS="'benchmark','slr','exclude',[2021]" 82 PYTHON_NROPTIONS="--benchmark slr --exclude 20 04 2021"82 PYTHON_NROPTIONS="--benchmark slr --exclude 2021" -
issm/trunk-jpl/src/m/geometry/delaunay.py
r25455 r25515 9 9 10 10 Usage: 11 # Creates a 2-D or 3-D Delaunay triangulation from the points in a matrix P. The output DT is a three-column (for two dimensions) or four-column (for three dimensions) matrix where each row contains the row indices of the input points that make up a triangle or tetrahedron in the triangulation. 11 # Creates a 2-D or 3-D Delaunay triangulation from the points in a 12 matrix P. The output DT is a three-column (for two dimensions) or 13 four-column (for three dimensions) matrix where each row contains the 14 row indices of the input points that make up a triangle or tetrahedron 15 in the triangulation. 16 12 17 DT = delaunay(P) 13 18 14 # Creates a 2-D Delaunay triangulation from the points in vectors x and y. 19 # Creates a 2-D Delaunay triangulation from the points in vectors x and 20 y. 21 15 22 DT = delaunay(x, y) 16 23 17 # Creates a 3-D Delaunay triangulation from the points in vectors x, y, and z. 24 # Creates a 3-D Delaunay triangulation from the points in vectors x, y, 25 and z. 26 18 27 DT = delaunay(x, y, z) 19 28 -
issm/trunk-jpl/src/m/solve/WriteData.py
r25316 r25515 8 8 9 9 def WriteData(fid, prefix, *args): 10 """ 11 WRITEDATA - write model field in binary file 12 13 Usage: 14 WriteData(fid, varargin) 10 """WRITEDATA - write model field in binary file 11 12 Usage: 13 WriteData(fid, varargin) 15 14 """ 16 15 -
issm/trunk-jpl/test/NightlyRun/runme.m
r22644 r25515 2 2 %RUNME - test deck for ISSM nightly runs 3 3 % 4 % In a test deck directory (test s/Vertification/NightlyRun for example)4 % In a test deck directory (test/Vertification/NightlyRun for example) 5 5 % The following command will launch all the existing tests: 6 6 % >> runme -
issm/trunk-jpl/test/NightlyRun/runme.py
r25302 r25515 20 20 21 21 def runme(id=None, exclude=None, benchmark='nightly', procedure='check', output='none', rank=1, numprocs=1): 22 """ 23 RUNME - test deck for ISSM nightly runs 24 25 In a test deck directory (tests / Vertification / NightlyRun for example) 26 The following command will launch all the existing tests: 27 >> runme() 28 To run the tests 101 and 102: 29 >> runme(id = [101, 102]) 30 etc... 31 32 Available options: 33 'id' followed by the list of ids or (parts of) test names requested 34 Note: runs all tests by default 35 36 'exclude' ids or (parts of) test names to be excluded (same format as id) 37 Note: exclude does nothing if 'id' is specified with different values 38 39 'benchmark' 'all' (all of the tests) 22 """RUNME - test deck for ISSM nightly runs 23 24 In a test deck directory (tests/Vertification / NightlyRun for example) the 25 following command will launch all the existing tests: 26 27 >> ./runme.py 28 29 To run the tests 101 and 102: 30 31 >> ./runme.py -i [101, 102] 32 33 Available options: 34 -i/--id followed by the list of ids or (parts of) test names requested 35 NOTE: runs all tests by default 36 37 -e/--exclude ids or (parts of) test names to be excluded (same format as id) 38 NOTE: exclude does nothing if 'id' is specified with different values 39 40 -b/--benchmark 'all' (all of the tests) 40 41 'nightly' (nightly run / daily run) 41 42 'ismip' : validation of ismip - hom tests … … 46 47 'slr' : validation of slr tests 47 48 48 'procedure''check' : run the test (default)49 -p/--procedure 'check' : run the test (default) 49 50 'update': update the archive 50 51 51 52 runme(varargin)53 54 55 runme()56 runme(101)57 runme('SquareShelf')58 runme(exclude = 2001)59 runme(exclude = 'Dakota', benchmark = 'all')60 runme(id = [[101, 102], ['Dakota', 'Slr']])61 62 63 52 Usage: 53 ./runme.py [option [args]] 54 55 Examples: 56 ./runme.py 57 ./runme.py -i 101 58 ./runme.py -i 'SquareShelf' 59 ./runme.py -e 2001 60 ./runme.py -e 'Dakota' --benchmark 'all' 61 ./runme.py -i [[101, 102], ['Dakota', 'Slr']] 62 63 TODO: 64 - At '#disp test result', make sure precision of output matches that of 64 65 MATLAB. 65 - Check for failures that do not raise exceptions (for example, 'Standard exception'; see also jenkins/jenkins.sh). These should be counted as failures. 66 """ 66 - Check for failures that do not raise exceptions (for example, 'Standard exception'; see also jenkins/jenkins.sh). These should be counted as failures. 67 """ 68 67 69 #Get ISSM_DIR variable 68 70 ISSM_DIR = os.environ['ISSM_DIR'] … … 75 77 print(("runme warning: benchmark '{}' not supported, defaulting to test 'nightly'.".format(benchmark))) 76 78 benchmark = 'nightly' 77 78 79 # }}} 80 #GET procedure {{{ 79 81 if procedure not in ['check', 'update']: 80 82 print(("runme warning: procedure '{}' not supported, defaulting to test 'check'.".format(procedure))) 81 83 procedure = 'check' 82 83 84 # }}} 85 #GET output {{{ 84 86 if output not in ['nightly', 'none']: 85 87 print(("runme warning: output '{}' not supported, defaulting to test 'none'.".format(output))) 86 88 output = 'none' 87 88 89 # }}} 90 #GET RANK and NUMPROCS for multithreaded runs {{{ 89 91 if (numprocs < rank): 90 92 numprocs = 1 91 92 93 # }}} 94 #GET ids {{{ 93 95 flist = glob('test*.py') #File name must start with 'test' and must end by '.py' and must be different than 'test.py' 94 96 list_ids = [int(file[4:-3]) for file in flist if not file == 'test.py'] #Keep test id only (skip 'test' and '.py') -
issm/trunk-jpl/test/NightlyRun/test2004.m
r25499 r25515 154 154 latAIS=delH{:,2}; 155 155 delHAIS=delH{:,3}; 156 index=delaunay(longAIS,latAIS); 156 points=[longAIS,latAIS]; 157 index=delaunayn(points); 157 158 lat=md.mesh.lat; 158 159 long=md.mesh.long+360; … … 190 191 191 192 %recover lat,long: 192 [md.mesh.long,md.mesh.lat]=gdaltransform(md.mesh.x,md.mesh.y,md.mesh.proj,'EPSG:4326'); 193 [md.mesh.long,md.mesh.lat]=gdaltransform(md.mesh.x,md.mesh.y,md.mesh.proj,'EPSG:4326'); 193 194 194 195 %mask: %{{{ … … 262 263 latGIS=delH(:,2); 263 264 delHGIS=delH(:,3); 264 index=delaunay(longGIS,latGIS); 265 points=[longGIS,latGIS]; 266 index=delaunayn(points); 265 267 lat=md.mesh.lat; 266 268 long=md.mesh.long+360; … … 274 276 latGLA=delH(:,2); 275 277 delHGLA=sum(delH(:,3:end),2); 276 index=delaunay(longGLA,latGLA); 278 points=[longGLA,latGLA]; 279 index=delaunayn(points); 277 280 lat=md.mesh.lat; 278 281 long=md.mesh.long+360; … … 409 412 md=solve(md,'Sealevelrise'); 410 413 Srotation=md.results.SealevelriseSolution.Sealevel; 411 412 414 %}}} 413 415
Note:
See TracChangeset
for help on using the changeset viewer.