Changeset 19997


Ignore:
Timestamp:
01/26/16 15:28:58 (9 years ago)
Author:
schlegel
Message:

CHG: add mailing option to lonestar

File:
1 edited

Legend:

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

    r19996 r19997  
    2020                 interactive   = 0;
    2121                 time          = 24*60*60;
     22                 email         = '';
    2223         end
    2324         %}}}
     
    4849                         disp(sprintf('    interactive: %i',cluster.interactive));
    4950                         disp(sprintf('    time: %i',cluster.time));
     51                         disp(sprintf('    email: %i',cluster.email));
    5052                 end
    5153                 %}}}
     
    121123                                 fprintf(fid,['module load ' cluster.modules{i} '\n']);
    122124                         end
     125                         if length(find(cluster.email=='@'))>0
     126                                 fprintf(fid,'#SBATCH --mail-user=%s\n',cluster.email);
     127                                 fprintf(fid,'#SBATCH --mail-type=end\n');
     128                         end
    123129                         fprintf(fid,'export PATH="$PATH:."\n\n');
    124130                         fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
Note: See TracChangeset for help on using the changeset viewer.