From 1e5132954b19ba3b4ea050db20ce3e66eac95b3c Mon Sep 17 00:00:00 2001 From: Yi-Cheng Teng - NOAA GFDL <143743249+yichengt900@users.noreply.github.com> Date: Mon, 6 Jan 2025 08:45:35 -0500 Subject: [PATCH] set descale in reproducing_sum_3d --- src/framework/MOM_coms.F90 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/framework/MOM_coms.F90 b/src/framework/MOM_coms.F90 index 8471dc0b29..ea5e632039 100644 --- a/src/framework/MOM_coms.F90 +++ b/src/framework/MOM_coms.F90 @@ -412,6 +412,7 @@ function reproducing_sum_3d(array, isr, ier, jsr, jer, sums, EFP_sum, EFP_lay_su do_sum_across_PEs = .true. ; if (present(only_on_PE)) do_sum_across_PEs = .not.only_on_PE do_unscale = .false. ; if (present(unscale)) do_unscale = (unscale /= 1.0) + descale = 1.0 ; if (do_unscale) descale = unscale if (present(sums) .or. present(EFP_lay_sums)) then if (present(sums)) then ; if (size(sums) < ke) then