Changeset 20522


Ignore:
Timestamp:
04/21/16 13:35:53 (9 years ago)
Author:
schlegel
Message:

CHG: add email workaround

File:
1 edited

Legend:

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

    r20227 r20522  
    123123                                 fprintf(fid,['module load ' cluster.modules{i} '\n']);
    124124                         end
     125
     126                         %fprintf(fid,'export KMP_AFFINITY="granularity=fine,compact,verbose" \n\n');
     127
    125128                         if length(find(cluster.email=='@'))>0
    126                                  fprintf(fid,'#SBATCH --mail-user=%s \n',cluster.email);
    127                                  fprintf(fid,'#SBATCH --mail-type=end \n\n');
    128                          end
     129                                 %fprintf(fid,'#SBATCH --mail-user=%s \n',cluster.email);
     130                                 %fprintf(fid,'#SBATCH --mail-type=end \n\n');
     131
     132                                 fprintf(fid,'ssh login1 "mail -s ''SLURM Jobid=${SLURM_JOBID} Name=${SLURM_JOB_NAME} Began on Lonestar 5.'' \\ \n');
     133                                 fprintf(fid,'%s <<< ''Job Started'' " \n\n',cluster.email);
     134                         end
     135
    129136                         fprintf(fid,'export PATH="$PATH:."\n\n');
    130137                         fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
     
    134141                         if ~io_gather, %concatenate the output files:
    135142                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     143                         end
     144
     145                         if length(find(cluster.email=='@'))>0
     146                                 fprintf(fid,'\n');
     147                                 fprintf(fid,'ssh login1 "mail -s ''SLURM Jobid=${SLURM_JOBID} Name=${SLURM_JOB_NAME} Ended on Lonestar 5.'' \\ \n');
     148                                 fprintf(fid,'%s <<< ''Job Started'' " \n\n',cluster.email);
    136149                         end
    137150                         fclose(fid);
Note: See TracChangeset for help on using the changeset viewer.