source: issm/oecreview/Archive/19101-20495/ISSM-19955-19956.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 2.7 KB
  • ../trunk-jpl/src/m/classes/clusters/lonestar.m

     
    110110                         fid=fopen([modelname '.queue'],'w');
    111111
    112112                         fprintf(fid,'#!/bin/bash\n');
    113                          fprintf(fid,'#$ -V #Inherit the submission environment \n');
    114                          fprintf(fid,'#$ -cwd ## Start job in submission directory \n');
    115                          fprintf(fid,'#$ -N %s\n',modelname);
    116                          fprintf(fid,'#$ -q %s \n',cluster.queue);
    117                          fprintf(fid,'#$ -R y\n');
    118                          fprintf(fid,'#$ -o %s.outlog \n',modelname);
    119                          fprintf(fid,'#$ -e %s.errlog \n',modelname);
    120                          fprintf(fid,'#$ -pe 12way %i \n',cluster.numnodes*12);
    121                          fprintf(fid,'#$ -l h_rt=%02i:%02i:00 \n\n',floor(cluster.time/3600),floor(mod(cluster.time,3600)/60));
     113                         fprintf(fid,'#SBATCH -J %s\n',modelname);
     114                         fprintf(fid,'#SBATCH -p %s \n',cluster.queue);
     115                         fprintf(fid,'#SBATCH -R y\n');
     116                         fprintf(fid,'#SBATCH -o %s.outlog \n',modelname);
     117                         fprintf(fid,'#SBATCH -e %s.errlog \n',modelname);
     118                         fprintf(fid,'#SBATCH -n %i \n',cluster.numnodes*12);
     119                         fprintf(fid,'#SBATCH -N %i \n',cluster.numnodes);
     120                         fprintf(fid,'#SBATCH -t %02i:%02i:00 \n\n',floor(cluster.time/3600),floor(mod(cluster.time,3600)/60));
    122121                         for i=1:numel(cluster.modules),
    123122                                 fprintf(fid,['module load ' cluster.modules{i} '\n']);
    124123                         end
     
    126125                         fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
    127126                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    128127                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    129                          fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     128                         fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
    130129                         if ~io_gather, %concatenate the output files:
    131130                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
    132131                         end
     
    135134                         %in interactive mode, create a run file, and errlog and outlog file
    136135                         if cluster.interactive,
    137136                                 fid=fopen([modelname '.run'],'w');
    138                                  fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,executable,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
     137                                 fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,executable,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname);
    139138                                 if ~io_gather, %concatenate the output files:
    140139                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
    141140                                 end
Note: See TracBrowser for help on using the repository browser.