Changeset 5085


Ignore:
Timestamp:
08/09/10 12:36:13 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added exclude option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/NightlyRun/runme.m

    r5084 r5085  
    22%RUNME - test deck for ISSM nightly runs
    33%
    4 %   In a test deck directory (tests/Vertification/test01_IceShelfIceFrontM2d for example)
    5 %   The following command will launch all the existing tests for test01
     4%   In a test deck directory (tests/Vertification/NightlyRun for example)
     5%   The following command will launch all the existing tests:
    66%   >> runme
    7 %   To run the tests in serial only
    8 %   >> runme('parallel',0)
     7%   To run the tests 101 and 102:
     8%   >> runme('id',[101 102])
    99%   etc...
    1010%
    1111%   Available options:
    12 %      'analysis_type' followed by the desired SolutionEnum
    13 %      'parallel'      0: serial only
    14 %                      1: parallel only
     12%      'id'            followed by the list of ids requested
     13%      'exclude'       ids to be excluded from the test
     14%      'benchmark'     'nightly' (nightly run/ daily run)
     15%                      ...
    1516%      'procedure'     'check' : run the test (default)
    1617%                      'update': update the archive
     
    2223%   Examples:
    2324%      runme;
    24 %      runme('analysis_type',DiagnosticSolutionEnum);
    25 %      runme('analysis_type',DiagnosticSolutionEnum,'parallel',0);
    26 %      runme('procedure','update','analysis_type',DiagnosticSolutionEnum,'parallel',1);
    27 
    28 % This file can be run to check that the current version of issm is giving
    29 % coherent results.
    30 % is square. Just run this file in Matlab, with a properly setup ISSM code.
    31 % The results of this test will indicate if there is a difference between current computations
    32 % and archived results.
    33 
    34 % Errors  between archived results and the current version will get flagged if they are not within
    35 % a certain tolerance.
     25%      runme('exclude',101);
     26%      md=runme('id',102,'procedure','model');
    3627
    3728%use ISSM_DIR generated by startup.m
     
    9182test_ids=getfieldvalue(options,'id',list_ids);
    9283test_ids=intersect(test_ids,list_ids);
     84% }}}
     85%GET exculde {{{1
     86exclude_ids=getfieldvalue(options,'exclude',[]);
     87pos=find(ismember(test_ids,exclude_ids));
     88test_ids(pos)=[];
    9389% }}}
    9490%Process Ids according to benchmarks{{{1
Note: See TracChangeset for help on using the changeset viewer.