From 7b7eb732edc88802cb134a5710ac32464b47b0d1 Mon Sep 17 00:00:00 2001 From: "Walter.Kolczynski" Date: Tue, 11 Oct 2022 07:31:17 -0500 Subject: [PATCH] Limit number of CPU for post Limits the number of MPI tasks for post to the resolution of the forecast. UPP seems to fail if it is given more ranks than the resolution. Fixes #1060 --- parm/config/config.resources | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parm/config/config.resources b/parm/config/config.resources index 909f0f6a2b..21ec6d2b5b 100755 --- a/parm/config/config.resources +++ b/parm/config/config.resources @@ -387,7 +387,11 @@ elif [ ${step} = "post" ]; then export wtime_post="02:00:00" export wtime_post_gfs="06:00:00" + res=$(echo ${CASE} | cut -c2-) export npe_post=112 + if (( npe_post > res )); then + export npe_post=${res} + fi export nth_post=1 export npe_node_post=12 export npe_node_dwn=${npe_node_max}