Skip to content

+Reproducing KPP_smooth_BLD when KPP%N_SMOOTH > 1#285

Merged
alperaltuntas merged 1 commit into
NCAR:dev/ncarfrom
Hallberg-NOAA:reproducing_KPP_smooth_BLD
Jul 13, 2024
Merged

+Reproducing KPP_smooth_BLD when KPP%N_SMOOTH > 1#285
alperaltuntas merged 1 commit into
NCAR:dev/ncarfrom
Hallberg-NOAA:reproducing_KPP_smooth_BLD

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown

Revised KPP_smooth_BLD() to reproduce across processor count and layout when USE_KPP is true and KPP%N_SMOOTH > 1. The specific changes include adding a variable with the total ocean depth before doing the iterations, doing a halo update on this total ocean depth, marching in the working do-loop size with successive iterations, and moving the code to calculate CS%kOBL into a separate loop that is exercised after all of the iterations for the smoothing passes on CS%OBLdepth. This commit will change answers (so that they reproduce across processor count and layout) when USE_KPP is true and KPP%N_SMOOTH >= 2, but it gives bitwise identical answers when KPP%N_SMOOTH <= 1.

Comment thread src/parameterizations/vertical/MOM_CVMix_KPP.F90 Outdated
  Revised KPP_smooth_BLD() to reproduce across processor count and layout when
USE_KPP is true and KPP%N_SMOOTH > 1.  The specific changes include adding a
variable with the total ocean depth before doing the iterations, doing a halo
update on this total ocean depth, marching in the working do-loop size with
successive iterations, and moving the code to calculate CS%kOBL into a separate
loop that is exercised after all of the iterations for the smoothing passes on
CS%OBLdepth.  This commit will change answers (so that they reproduce across
processor count and layout) when USE_KPP is true and KPP%N_SMOOTH >= 2, but it
gives bitwise identical answers when KPP%N_SMOOTH <= 1.
@Hallberg-NOAA Hallberg-NOAA force-pushed the reproducing_KPP_smooth_BLD branch from a26a126 to 920093a Compare July 12, 2024 22:30
@alperaltuntas alperaltuntas merged commit 51a98c7 into NCAR:dev/ncar Jul 13, 2024
@Hallberg-NOAA Hallberg-NOAA deleted the reproducing_KPP_smooth_BLD branch June 17, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants