Changeset 3149
- Timestamp:
- 03/02/10 11:22:10 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public/queue
- Files:
-
- 14 added
- 11 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/queue/BuildQueueingScript.m
r2880 r3149 5 5 % BuildQueueingScript(md,executionpath,codepath) 6 6 7 disp('building queueing script'); 7 disp('check queue requirements'); 8 QueueRequirements(md.cluster,md.queue,md.np,md.time); 8 9 9 %First try and figure out if there is a special script for thie particular cluster 10 function_name=['BuildQueueingScript' md.cluster]; 10 disp('write queueing script'); 11 11 12 %some specific treatment of identical cluster, gemini, castor and pollux 13 if strcmpi(md.cluster,'castor') || strcmpi(md.cluster,'pollux'), 14 function_name='BuildQueueingScriptgemini'; 12 %open file 13 fid=fopen([md.name '.queue'],'w'); 14 if fid==-1, 15 error(['BuildQueueingScripterror message: could not open ' [md.name '.queue'] ' file for ascii writing']); 15 16 end 16 17 17 if exist(function_name,'file'), 18 %Call this function: 19 eval([function_name '(md,executionpath,codepath);']); 20 else 21 %Call the generic BuildQueueingScript: 22 BuildQueueingScriptGeneric(md,executionpath,codepath); 23 end 18 %hand down to cluster specific script 19 ClusterScript(fid,md.cluster,md.name,md.queue,executionpath,codepath,md.analysis_type,md.np,md.time,md.mem_debug); 20 21 %close file 22 fclose(fid); 23
Note:
See TracChangeset
for help on using the changeset viewer.