Changeset 1978
- Timestamp:
- 08/26/09 17:39:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Nightly/nightlyrun.m
r1933 r1978 18 18 % nightlyrun({'ice'},{'prognostic','diagnostic'},1,3); 19 19 20 %check arguments21 if (nargin>4)22 help nightlyrun23 error('nightlyrun error message: bad usage');24 end25 26 20 %use ISSM_DIR generated by startup.m 27 21 global ISSM_DIR 28 22 29 %recover rank and numprocs: 30 if nargin>=2, 23 %check number of inputs 24 if nargin==0, 25 packages={'macayeal','ice','cielo_serial','cielo_parallel'}; 26 rank=1; 27 numprocs=1; 28 elseif nargin==1, 29 packages=varargin{1}; 30 rank=1; 31 numprocs=1; 32 elseif nargin==3, 33 packages=varargin{1}; 31 34 rank=varargin{end-1}; 32 35 numprocs=varargin{end}; 33 if ~isnumeric(rank), 34 rank=1; 35 end 36 if ~isnumeric(numprocs), 37 numprocs=1; 38 end 36 if ~isnumeric(rank), rank=1; end 37 if ~isnumeric(numprocs), numprocs=1; end 38 else 39 help nightlyrun 40 error('nightlyrun error message: bad usage'); 39 41 end 40 42 … … 46 48 47 49 list=listfilesparallel(rank,numprocs); 48 49 %Get packages50 if nargin,51 packages=varargin{1};52 else53 packages={'macayeal','ice','cielo_serial','cielo_parallel'};54 end55 50 56 51 %Go through list of decks, and run the deck runme.m files package by package.
Note:
See TracChangeset
for help on using the changeset viewer.