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

Option to taper neutral diffusion #248

Merged

Conversation

gustavo-marques
Copy link
Collaborator

Adds the option to apply a linear decay in the neutral diffusion fluxes within a transition zone defined by the boundary layer depths of adjacent columns, as in Fig. 2a from Marques et al., (2023). This option is controlled by a new parameter NDIFF_TAPERING, which is only available when NDIFF_INTERIOR_ONLY=True. By default, NDIFF_TAPERING=False, and answers are bitwise identical.

This commit adds the option to apply a linear decay in the
neutral diffusion fluxes within a transition zone defined
by the boundary layer depths of adjacent columns. This option
is controlled by a new parameter NDIFF_TAPERING, which is only
available when NDIFF_INTERIOR_ONLY=True. By default
NDIFF_TAPERING=False and answers are bitwise identical.
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2023

Codecov Report

Patch coverage: 9.37% and project coverage change: -0.04% ⚠️

Comparison is base (aa58724) 37.07% compared to head (3cfe1fe) 37.04%.
Report is 2 commits behind head on dev/ncar.

❗ Current head 3cfe1fe differs from pull request most recent head cf29f1b. Consider uploading reports for the commit cf29f1b to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           dev/ncar     #248      +/-   ##
============================================
- Coverage     37.07%   37.04%   -0.04%     
============================================
  Files           264      264              
  Lines         74421    74475      +54     
  Branches      13780    13787       +7     
============================================
- Hits          27592    27589       -3     
- Misses        41739    41791      +52     
- Partials       5090     5095       +5     
Files Changed Coverage Δ
src/parameterizations/vertical/MOM_CVMix_KPP.F90 0.75% <0.00%> (-0.03%) ⬇️
src/tracer/MOM_neutral_diffusion.F90 63.36% <12.24%> (-2.03%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gustavo-marques
Copy link
Collaborator Author

@alperaltuntas; this PR is ready for review.

Simplifies and reduces the code by adding hbd to the neutral
diffusion contril structure. This avoid the need to "extract"
hbl multiple times. Answers are bitwise indenticals.
@alperaltuntas
Copy link
Member

LGTM. Did you run the test sute?

@gustavo-marques
Copy link
Collaborator Author

I did not test the entire suit, only GMOM JRA. I can do it now or we can do it once I create a follow-up PR adding the vertical structure in KHTR.

@gustavo-marques
Copy link
Collaborator Author

This PR is ready for review.

@alperaltuntas alperaltuntas merged commit d3e2647 into NCAR:dev/ncar Aug 23, 2023
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