Changeset 1933


Ignore:
Timestamp:
08/26/09 11:04:41 (16 years ago)
Author:
Eric.Larour
Message:

Parallel nightly run: run.sh
Cannot run in cron mode, but can be used anywhere to quickly run nightlys.

Location:
issm/trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Nightly/nightlyrun.m

    r1462 r1933  
    55%   launch the nightly tests. A specific package can be given in input
    66%   only this package will be tested
     7%   if last arguments are a pair of numbers, they represent the node rank and the number of
     8%   cpus being used for the nightly run.
    79%
    810%  Usage:
     
    1416%      nightlyrun({'cielo_serial','cielo_parallel'});
    1517%      nightlyrun({'ice'},{'prognostic','diagnostic'});
     18%      nightlyrun({'ice'},{'prognostic','diagnostic'},1,3);
    1619
    1720%check arguments
    18 if (nargin>2)
     21if (nargin>4)
    1922        help nightlyrun
    2023        error('nightlyrun error message: bad usage');
     
    2427global ISSM_DIR
    2528
     29%recover rank and numprocs:
     30if nargin>=2,
     31        rank=varargin{end-1};
     32        numprocs=varargin{end};
     33        if ~isnumeric(rank),
     34                rank=1;
     35        end
     36        if ~isnumeric(numprocs),
     37                numprocs=1;
     38        end
     39end
     40
    2641%Go to Test directory
    2742eval(['cd ' ISSM_DIR '/test/']);
     
    3045cd Verification
    3146
    32 list=listfiles;
     47list=listfilesparallel(rank,numprocs);
    3348
    3449%Get packages
Note: See TracChangeset for help on using the changeset viewer.