Changeset 17461


Ignore:
Timestamp:
03/18/14 11:48:49 (11 years ago)
Author:
bdef
Message:

NEW : adding walltime and memory limit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/greenplanet.m

    r16714 r17461  
    1919                 interactive=0;
    2020                 time=24*60;
     21                 memory=2;
    2122         end
    2223         properties (SetAccess=private)
     
    4748                         disp(sprintf('    executionpath: %s',cluster.executionpath));
    4849                         disp(sprintf('    interactive: %i',cluster.interactive));
     50                         disp(sprintf('    time: %i',cluster.time));
     51                         disp(sprintf('    memory: %i',cluster.memory));
    4952                 end
    5053                 %}}}
     
    7881                         fprintf(fid,'#PBS -q %s \n',cluster.queue);
    7982                         fprintf(fid,'#PBS -l nodes=%i:ppn=%i\n',cluster.numnodes,cluster.cpuspernode);
     83                         fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60);%walltime is in seconds.
     84                         fprintf(fid,'#PBS -l mem=%igb\n',cluster.memory);
    8085                         fprintf(fid,'#PBS -m bea\n');
    8186                         fprintf(fid,'#PBS -M mmorligh@uci.edu\n');
     
    103108                         fprintf(fid,'#PBS -N %s\n',modelname);
    104109                         fprintf(fid,'#PBS -q %s \n',cluster.queue);
    105                          fprintf(fid,'#PBS -l nodes=%i:ppn=%i\n',cluster.numnodes,cluster.cpuspernode);
     110                         fprintf(fid,'#PBS -l nodes=%i:ppn=%i\n',cluster.numnodes, ...
     111                                                         cluster.cpuspernode);
     112                         fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60); %walltime is in seconds.
     113                         fprintf(fid,'#PBS -l mem=%igb\n',cluster.memory);
    106114                         fprintf(fid,'#PBS -m bea\n');
    107115                         fprintf(fid,'#PBS -M mmorligh@uci.edu\n');
Note: See TracChangeset for help on using the changeset viewer.