From 956a143a195fbbdc0d4668478ca01ead648e440d Mon Sep 17 00:00:00 2001 From: David Huber Date: Fri, 15 Oct 2021 14:17:50 +0000 Subject: [PATCH] GitHub Issue #215. Update Jet support, port monitors to Jet and S4. --- ush/calcanl_gfs.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ush/calcanl_gfs.py b/ush/calcanl_gfs.py index 79c29efda0..bf328aaa06 100755 --- a/ush/calcanl_gfs.py +++ b/ush/calcanl_gfs.py @@ -229,6 +229,13 @@ def calcanl_gfs(DoIAU, l4DEnsVar, Write4Danl, ComOut, APrefix, ASuffix, with open(CalcAnlDir+'/hosts', 'w') as hostfile: hostfile.write(hosts[ihost]+'\n') if launcher == 'srun': # need to write host per task not per node for slurm + # For xjet, each instance of chgres_inc must run on two nodes each + if os.getenv('SLURM_JOB_PARTITION','') == 'xjet': + for a in range(0,4): + hostfile.write(hosts[ihost]+'\n') + ihost+=1 + for a in range(0,5): + hostfile.write(hosts[ihost]+'\n') for a in range(0,9): # need 9 more of the same host for the 10 tasks for chgres_inc hostfile.write(hosts[ihost]+'\n') if launcher == 'srun':