Changeset 18787


Ignore:
Timestamp:
11/14/14 16:42:38 (10 years ago)
Author:
seroussi
Message:

NEW: starting to add ocean queuing script

File:
1 edited

Legend:

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

    r18755 r18787  
    215215                         end
    216216                 end %}}}
     217                 function BuildOceanQueueScript(cluster,modelname,solution,io_gather,isvalgrind,isgprof) % {{{
     218
     219                         %compute number of processors
     220                         cluster.np=cluster.numnodes*cluster.cpuspernode;
     221
     222                         %write queuing script
     223                         fid=fopen([modelname '.queue'],'w');
     224                         fprintf(fid,'#PBS -S /bin/bash\n');
     225                         fprintf(fid,'#PBS -l select=%i:ncpus=%i:model=%s\n',cluster.numnodes,cluster.cpuspernode,cluster.processor);
     226                         fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60); %walltime is in seconds.
     227                         fprintf(fid,'#PBS -q %s \n',cluster.queue);
     228                         fprintf(fid,'#PBS -W group_list=%s\n',cluster.grouplist);
     229                         fprintf(fid,'#PBS -m e\n');
     230                         fprintf(fid,'#PBS -o %s.outlog \n',modelname);
     231                         fprintf(fid,'#PBS -e %s.errlog \n\n',modelname);
     232                         fprintf(fid,'. /usr/share/modules/init/bash\n\n');
     233                         fprintf(fid,'module load comp-intel/2015.0.090\n');
     234                         fprintf(fid,'module load test/mpt.2.11r8\n');
     235                         fprintf(fid,'module load netcdf/4.0\n');
     236                         fprintf(fid,'module load mpi-mvapich2/1.4.1/gcc\n');
     237                         fprintf(fid,'module load gcc/4.4.4\n');
     238                         fprintf(fid,'export PATH="$PATH:."\n');
     239                         fprintf(fid,'export MPI_GROUP_MAX=64\n\n');
     240                         fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,modelname);
     241                         fprintf(fid,'mpiexec -np %i ./mitgcm\n',cluster.np);
     242                %        if ~io_gather, %concatenate the output files:
     243                %                fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     244                %        end
     245                         fclose(fid);
     246
     247                 end %}}}
    217248                 function LaunchQueueJob(cluster,modelname,dirname,filelist)% {{{
    218249
Note: See TracChangeset for help on using the changeset viewer.