Changeset 1018
- Timestamp:
- 06/19/09 08:10:20 (16 years ago)
- Location:
- issm/trunk/src/m/utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Nightly/nightlyrun.m
r746 r1018 13 13 % nightlyrun({'ice'}); 14 14 % nightlyrun({'cielo_serial','cielo_parallel'}); 15 % nightlyrun({'ice'},{'prognostic','diagnostic'}); 16 17 %check arguments 18 if (nargin>2) 19 help nightlyrun 20 error('nightlyrun error message: bad usage'); 21 end 15 22 16 23 %use ISSM_DIR generated by startup.m … … 27 34 list=strsplit(list,'|'); 28 35 36 %Get packages 37 if nargin, 38 packages=varargin{1}; 39 else 40 packages={'macayeal','ice','cielo_serial','cielo_parallel'}; 41 end 42 29 43 %Go through list of decks, and run the deck runme.m files package by package. 30 packages={'macayeal','ice','cielo_serial','cielo_parallel'}; 31 if nargin==1, 44 for i=1:length(packages), 32 45 for j=2:length(list)-1, 33 46 eval(['cd ' list{j}]); 34 runme(varargin{1}); 47 if nargin==2, 48 runme(packages(i),varargin(2)); 49 else 50 runme(packages(i)); 51 end 35 52 cd .. 36 end37 else38 for i=1:length(packages),39 for j=2:length(list)-1,40 eval(['cd ' list{j}]);41 runme({packages{i}});42 cd ..43 end44 53 end 45 54 end -
issm/trunk/src/m/utils/UpdateArchive/updatearchive.m
r494 r1018 14 14 % updatearchive({'ice'}); 15 15 % updatearchive({'cielo_serial','cielo_parallel'}); 16 % updatearchive({'ice'},{'prognostic','diagnostic'}); 17 18 %check arguments 19 if (nargin>2) 20 help updatearchive 21 error('updatearchive error message: bad usage'); 22 end 16 23 17 24 %use ISSM_DIR generated by startup.m … … 27 34 [status,list]=system('ls -l | grep -v CVS | awk ''{printf("%s|",$9);}'' '); %only works on *nix systems. 28 35 list=strsplit(list,'|'); 29 %Go through list of decks, and run the deck updatearchive.m files. 30 for i=2:length(list)-1, 31 eval(['cd ' list{i}]); 32 if nargin==1 33 updatearchive(varargin{1}); 34 else 35 updatearchive; 36 37 %Get packages 38 if nargin, 39 packages=varargin{1}; 40 else 41 packages={'macayeal','ice','cielo_serial','cielo_parallel'}; 42 end 43 44 %Go through list of decks, and run the deck updatearchive.m files package by package. 45 for i=1:length(packages), 46 for j=2:length(list)-1, 47 eval(['cd ' list{j}]); 48 if nargin==2, 49 updatearchive(packages(i),varargin(2)); 50 else 51 updatearchive(packages(i)); 52 end 53 cd .. 36 54 end 37 cd ..38 55 end
Note:
See TracChangeset
for help on using the changeset viewer.