Changeset 3149


Ignore:
Timestamp:
03/02/10 11:22:10 (15 years ago)
Author:
Eric.Larour
Message:

More generic creation of queuing scripts.

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  
    55%      BuildQueueingScript(md,executionpath,codepath)
    66
    7 disp('building queueing script');
     7disp('check queue requirements');
     8QueueRequirements(md.cluster,md.queue,md.np,md.time);
    89
    9 %First try and figure out if there is a special script for thie particular cluster
    10 function_name=['BuildQueueingScript' md.cluster];
     10disp('write queueing script');
    1111
    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
     13fid=fopen([md.name '.queue'],'w');
     14if fid==-1,
     15        error(['BuildQueueingScripterror message: could not open ' [md.name '.queue'] ' file for ascii writing']);
    1516end
    1617
    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
     19ClusterScript(fid,md.cluster,md.name,md.queue,executionpath,codepath,md.analysis_type,md.np,md.time,md.mem_debug);
     20
     21%close file
     22fclose(fid);
     23
Note: See TracChangeset for help on using the changeset viewer.