Changeset 2167
- Timestamp:
- 09/09/09 16:10:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Nightly/nightlyrun.m
r2160 r2167 21 21 global ISSM_DIR 22 22 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}; 34 rank=varargin{end-1}; 35 numprocs=varargin{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'); 41 end 23 %recover options 24 options=recover_options(varargin{:}); 25 26 %check numproc and rank options 27 rank=find_option(options,'rank'); 28 if isempty(rank), rank=1; end 29 rank=find_option(options,'numproc'); 30 if isempty(rank), numproc=1; end 42 31 43 32 %Go to Test directory … … 49 38 list=listfilesparallel(rank,numprocs); 50 39 51 %Go through list of decks, and run the deck runme.m files package by package. 52 for i=1:length(packages), 53 for j=1:numel(list), 54 eval(['cd ' list{j}]); 55 if nargin==2, 56 runme(packages(i),varargin{2}); 57 else 58 updatearchive 59 end 60 cd .. 61 end 40 %Go through list of decks, and run the deck runme.m files 41 for j=1:numel(list), 42 eval(['cd ' list{j}]); 43 runme(varargin{:}); 44 cd .. 62 45 end 63 46
Note:
See TracChangeset
for help on using the changeset viewer.