From 300ee6450d18f4225f3be91eec023bc9efab4472 Mon Sep 17 00:00:00 2001 From: "Walter.Kolczynski" Date: Mon, 1 May 2023 23:04:02 -0500 Subject: [PATCH] Use correct number of tasks in CICE when using threads When the workflow was updated to use ESMF threading, the CICE namelist was not updated to use the new ntasks_cic6 variable instead of ICEPETS. This caused the incorrect number to be used when using multiple threads. Fixes #1549 --- ush/parsing_namelists_CICE.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ush/parsing_namelists_CICE.sh b/ush/parsing_namelists_CICE.sh index cf5b0fbf837..6fc8b143cc2 100755 --- a/ush/parsing_namelists_CICE.sh +++ b/ush/parsing_namelists_CICE.sh @@ -25,8 +25,8 @@ fi # Get correct MPI options for NPROC and grid local processor_shape=${cice6_processor_shape:-'slenderX2'} local shape=${processor_shape#${processor_shape%?}} -local NPX=$(( ICEPETS / shape )) #number of processors in x direction -local NPY=$(( ICEPETS / NPX )) #number of processors in y direction +local NPX=$(( ntasks_cice6 / shape )) #number of processors in x direction +local NPY=$(( ntasks_cice6 / NPX )) #number of processors in y direction if (( $(( NX_GLB % NPX )) == 0 )); then local block_size_x=$(( NX_GLB / NPX )) else @@ -201,7 +201,7 @@ cat > ice_in <