Ignore:
Timestamp:
10/02/18 03:56:24 (6 years ago)
Author:
bdef
Message:

NEW: adding a smb scheme that compute runoff separately (also fixing stallo cluster)

File:
1 edited

Legend:

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

    r23230 r23365  
    105105                         fprintf(fid,'#SBATCH --nodes=%i \n',cluster.numnodes);
    106106                         fprintf(fid,'#SBATCH --ntasks-per-node=%i \n',cluster.cpuspernode);
    107                          fprintf(fid,'#SBATCH --time=%02i-%02i:%02i:00 \n',floor(cluster.time/(3600*24)),floor(cluster.time/3600),floor(mod(cluster.time,60)));
    108                          fprintf(fid,'#SBATCH --mem-per-cpu=%iMB\n',1000*cluster.mem); ...
    109        % mem in MB
     107                         days=floor(cluster.time/(60*24));
     108                         hours=floor((cluster.time-(days*60*24))/60);
     109                         minutes=floor(mod((cluster.time-(days*60*24)-(hours*60)),60));
     110                         fprintf(fid,'#SBATCH --time=%02i-%02i:%02i:00 \n',days,hours,minutes);
     111                         fprintf(fid,'#SBATCH --mem-per-cpu=%iMB\n',1000*cluster.mem); % mem in MB
    110112                         if (mod(cluster.np,16)+mod(cluster.np,20))==0,
    111113                                fprintf(fid,'#SBATCH --ntask=%i\n',cluster.np);
Note: See TracChangeset for help on using the changeset viewer.