Skip to content

Commit

Permalink
Update WCOSS2 qsub job cards
Browse files Browse the repository at this point in the history
Refs: #66
  • Loading branch information
malloryprow committed Feb 18, 2022
1 parent 85314d8 commit 96b16b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ush/run_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,16 @@
job_card.write('#PBS -l walltime=6:00:00\n')
job_card.write('#PBS -l debug=true\n')
if RUN in ['grid2grid_step2']:
job_card.write('#PBS -l place=vscatter,select=1'
job_card.write('#PBS -l place=vscatter:excl,select=1'
+':mpiprocs='+str(int(nproc)*3)+':ompthreads=1'
+':ncpus='+str(int(nproc)*3)+'\n')
elif RUN in ['grid2obs_step2', 'maps2d']:
job_card.write('#PBS -l place=vscatter,select=1'
job_card.write('#PBS -l place=vscatter:excl,select=1'
+':mpiprocs='+str(int(nproc)*4)+':ompthreads=1'
+':ncpus='+str(int(nproc)*4)+'\n')
else:
job_card.write('#PBS -l place=vscatter,select=1'
job_card.write('#PBS -l place=vscatter:excl,select=1'
+':mpiprocs='+nproc+':ompthreads=1'
+':ncpus='+nproc+'\n')
job_card.write('\n')
job_card.write('cd $PBS_O_WORKDIR\n')
Expand Down

0 comments on commit 96b16b0

Please sign in to comment.