Changeset 27710


Ignore:
Timestamp:
04/27/23 11:28:38 (23 months ago)
Author:
badgeley
Message:

CHG: allow for formatting of run times longer than 24 hours

File:
1 edited

Legend:

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

    r27262 r27710  
    104104                        fprintf(fid,'#SBATCH --nodes=%i\n',cluster.numnodes);
    105105                        fprintf(fid,'#SBATCH --ntasks-per-node=%i\n',cluster.cpuspernode);
    106                         fprintf(fid,'#SBATCH --time=%s\n',datestr(cluster.time/24,'HH:MM:SS')); %walltime is in HH:MM:SS format. cluster.time is in hour
     106                        fprintf(fid,'#SBATCH --time=%s\n',eraseBetween(datestr(cluster.time/24,'dd-HH:MM:SS'),1,1)); %walltime is in d-HH:MM:SS format. cluster.time is in hour
    107107                        fprintf(fid,'#SBATCH --mem=%iG\n',cluster.memory);
    108108                        if ~isempty(cluster.email)
Note: See TracChangeset for help on using the changeset viewer.