Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two small fixes for FPMix #321

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

mnlevy1981
Copy link
Collaborator

  1. Update CVMix to fix a bug (was not computing L_StokesL correctly when updating w_s)
  2. Special case for k=1 when computing surfBuoyFlux in Stokes MOST

Also added CVMix KPP parameter CVt2 to paramFile so it can be adjusted at run-time

I ran pr_mom (without baseline comparison because this is answer-changing). All 5 tests finished successfully, though I did see the expected failures:

$ grep FAIL */TestStatus
FAIL DIMCSL_Ld1.TL319_t232.G_JRA.derecho_intel.mom-cfc_mods COMPARE_dimscale_1_Tp_base
FAIL ERI.TL319_t232.G_JRA.derecho_intel.mom-debug COMPARE_base_hybrid

(I tested before #318 was merged)

1. Update CVMix to fix a bug (was not computing L_StokesL correctly when
updating w_s)
2. Special case for k=1 when computing surfBuoyFlux in Stokes MOST

Also added CVMix KPP parameter CVt2 to paramFile so it can be adjusted at
run-time
@mnlevy1981 mnlevy1981 marked this pull request as draft October 31, 2024 16:40
Comment on lines 440 to 442
call get_param(paramFile, mdl, "KPP_CVt2", CS%KPP_CVt2, &
'Parameter for Stokes MOST convection entrainment', &
units="nondim", default=1.6)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in an if (CS%LT_K_Enhancement) then and it shouldn't be; I'm a little surprised this is passing the test suite because I don't think CS%KPP_CVt2 is initialized before being passed to cvmix_init_kpp(). I didn't run a gnu debug test, which might catch it?

I'm testing a fix (moving these lines out of the if block), then I'll mark this ready to review again.

Make sure that KPP_CVt2 is read whenever KPP is enabled (may eventually want to
only provide it if using Stokes MOST?)
@mnlevy1981 mnlevy1981 marked this pull request as ready for review October 31, 2024 23:49
@mnlevy1981
Copy link
Collaborator Author

@alperaltuntas I've verified that the last commit lets us change KPP_CVt2 via user_nl_mom with

KPP%
KPP_CVt2 = {NEW_VAL}
%KPP

So this is ready to go now

@alperaltuntas alperaltuntas merged commit b880ce8 into NCAR:dev/ncar Nov 1, 2024
10 checks passed
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.

3 participants