Changeset 1933
- Timestamp:
- 08/26/09 11:04:41 (16 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Nightly/nightlyrun.m
r1462 r1933 5 5 % launch the nightly tests. A specific package can be given in input 6 6 % 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. 7 9 % 8 10 % Usage: … … 14 16 % nightlyrun({'cielo_serial','cielo_parallel'}); 15 17 % nightlyrun({'ice'},{'prognostic','diagnostic'}); 18 % nightlyrun({'ice'},{'prognostic','diagnostic'},1,3); 16 19 17 20 %check arguments 18 if (nargin> 2)21 if (nargin>4) 19 22 help nightlyrun 20 23 error('nightlyrun error message: bad usage'); … … 24 27 global ISSM_DIR 25 28 29 %recover rank and numprocs: 30 if 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 39 end 40 26 41 %Go to Test directory 27 42 eval(['cd ' ISSM_DIR '/test/']); … … 30 45 cd Verification 31 46 32 list=listfiles ;47 list=listfilesparallel(rank,numprocs); 33 48 34 49 %Get packages
Note:
See TracChangeset
for help on using the changeset viewer.