source: issm/oecreview/Archive/18296-19100/ISSM-18789-18790.diff

Last change on this file was 19102, checked in by Mathieu Morlighem, 10 years ago

NEW: added 18296-19100

File size: 1.6 KB
  • ../trunk-jpl/src/m/classes/clusters/pfe.m

     
    214214                                 fclose(fid);
    215215                         end
    216216                 end %}}}
    217                  function BuildOceanQueueScript(cluster,modelname,solution,io_gather,isvalgrind,isgprof) % {{{
     217                 function BuildOceanQueueScript(np,cluster,modelname) % {{{
    218218
    219                          %compute number of processors
    220                          cluster.np=cluster.numnodes*cluster.cpuspernode;
    221 
    222219                         %write queuing script
    223220                         fid=fopen([modelname '.queue'],'w');
    224221                         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.
     222                         fprintf(fid,'#PBS -l select=1:ncpus=%i:model=%s\n',np,cluster.processor);
     223                         fprintf(fid,'#PBS -l walltime=%i\n',cluster.time); %walltime is in seconds.
    227224                         fprintf(fid,'#PBS -q %s \n',cluster.queue);
    228225                         fprintf(fid,'#PBS -W group_list=%s\n',cluster.grouplist);
    229226                         fprintf(fid,'#PBS -m e\n');
     
    237234                         fprintf(fid,'module load gcc/4.4.4\n');
    238235                         fprintf(fid,'export PATH="$PATH:."\n');
    239236                         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);
     237                         fprintf(fid,['cd ' pwd() ' \n\n']);
     238                         fprintf(fid,'mpiexec -np %i ./mitgcmuv\n',np);
    242239                %        if ~io_gather, %concatenate the output files:
    243240                %                fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
    244241                %        end
Note: See TracBrowser for help on using the repository browser.