source:
issm/oecreview/Archive/19101-20495/ISSM-19955-19956.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 2.7 KB |
-
../trunk-jpl/src/m/classes/clusters/lonestar.m
110 110 fid=fopen([modelname '.queue'],'w'); 111 111 112 112 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)); 122 121 for i=1:numel(cluster.modules), 123 122 fprintf(fid,['module load ' cluster.modules{i} '\n']); 124 123 end … … 126 125 fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME 127 126 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 128 127 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); 130 129 if ~io_gather, %concatenate the output files: 131 130 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); 132 131 end … … 135 134 %in interactive mode, create a run file, and errlog and outlog file 136 135 if cluster.interactive, 137 136 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); 139 138 if ~io_gather, %concatenate the output files: 140 139 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); 141 140 end
Note:
See TracBrowser
for help on using the repository browser.