[19102] | 1 | Index: ../trunk-jpl/src/m/classes/clusters/pfe.m
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/classes/clusters/pfe.m (revision 18789)
|
---|
| 4 | +++ ../trunk-jpl/src/m/classes/clusters/pfe.m (revision 18790)
|
---|
| 5 | @@ -214,16 +214,13 @@
|
---|
| 6 | fclose(fid);
|
---|
| 7 | end
|
---|
| 8 | end %}}}
|
---|
| 9 | - function BuildOceanQueueScript(cluster,modelname,solution,io_gather,isvalgrind,isgprof) % {{{
|
---|
| 10 | + function BuildOceanQueueScript(np,cluster,modelname) % {{{
|
---|
| 11 |
|
---|
| 12 | - %compute number of processors
|
---|
| 13 | - cluster.np=cluster.numnodes*cluster.cpuspernode;
|
---|
| 14 | -
|
---|
| 15 | %write queuing script
|
---|
| 16 | fid=fopen([modelname '.queue'],'w');
|
---|
| 17 | fprintf(fid,'#PBS -S /bin/bash\n');
|
---|
| 18 | - fprintf(fid,'#PBS -l select=%i:ncpus=%i:model=%s\n',cluster.numnodes,cluster.cpuspernode,cluster.processor);
|
---|
| 19 | - fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60); %walltime is in seconds.
|
---|
| 20 | + fprintf(fid,'#PBS -l select=1:ncpus=%i:model=%s\n',np,cluster.processor);
|
---|
| 21 | + fprintf(fid,'#PBS -l walltime=%i\n',cluster.time); %walltime is in seconds.
|
---|
| 22 | fprintf(fid,'#PBS -q %s \n',cluster.queue);
|
---|
| 23 | fprintf(fid,'#PBS -W group_list=%s\n',cluster.grouplist);
|
---|
| 24 | fprintf(fid,'#PBS -m e\n');
|
---|
| 25 | @@ -237,8 +234,8 @@
|
---|
| 26 | fprintf(fid,'module load gcc/4.4.4\n');
|
---|
| 27 | fprintf(fid,'export PATH="$PATH:."\n');
|
---|
| 28 | fprintf(fid,'export MPI_GROUP_MAX=64\n\n');
|
---|
| 29 | - fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,modelname);
|
---|
| 30 | - fprintf(fid,'mpiexec -np %i ./mitgcm\n',cluster.np);
|
---|
| 31 | + fprintf(fid,['cd ' pwd() ' \n\n']);
|
---|
| 32 | + fprintf(fid,'mpiexec -np %i ./mitgcmuv\n',np);
|
---|
| 33 | % if ~io_gather, %concatenate the output files:
|
---|
| 34 | % fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
|
---|
| 35 | % end
|
---|