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

Main to dev gfdl #1497

Merged
merged 41 commits into from
Sep 15, 2021
Merged

Conversation

marshallward
Copy link
Collaborator

No description provided.

alperaltuntas and others added 30 commits April 21, 2021 18:03
…ncar-2021-04-21

Merging the main candidate from GFDL 2021-03-26
…nthreads_nuopc

Add isPresent and isSet when retrieving nthreads
These arrays were not being deallocated which was causing a
memory leak problem.
This commit fixes misplaced parentheses in the tridiagonal solvers used in
subroutines tracer_vertdiff_Eulerian and tracer_vertdiff. This bug has been
reported in https://github.com/NOAA-GFDL/MOM6/issues/1415

This commit also changes the mask condition used in these subroutines.
This commit adds a new module (MOM_CFC_cap) that can used to
simulate chlorofluorocarbons (CFCs) tracers. It also includes
the modifications needed to 1) allocate arrays in the fluxes and
surface types, and 2) activate the MOM_CFC_cap module via NUOPC cap.
…mentation

* Implements a module to simulate CFCs via NUOPC cap
Fix NUOPC import of fields required for the new CFC module
The export of ice fraction was previously added for the
newly added CFC module.
In a previous commit, the expression

tr(i,j,1) = (b1(i)*h_tr)*tr(i,j,1) + sfc_src(i,j)

was change to

tr(i,j,1) = b1(i)*(h_tr*tr(i,j,1) + sfc_src(i,j))

in 4 lines. This changed the order in which b1(i)*h_tr*tr(i,j,1) is evaluated,
even if sfc_src(i,j) is 0.0. Because the CESM configurations use the
passive tracer tridiagonal solver for T and S, the modification above changed
answers in these configurations. To recover previous answers the expression must
be

tr(i,j,1) = (b1(i)*h_tr)*tr(i,j,1) + b1(i)*sfc_src(i,j)
…change_in_CFC_PR

* Recover answer change from CFC PR
…uted and applied: (1) When available, pass the enhancement factor received from WW3. Otherwise, let CVmix compute the enhancement factor. (2) Instead of explicitly multiplying diffusivities and viscosities with the enhancement factor, let CVMix handle enhancement internally.
correct scale argument in get_param and chksum calls

add dimension scaling terms to some expressions

add some chksum calls
Copy link
Collaborator

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

These changes have been thoroughly vetted before they were migrated from dev/ncar to main.

There is an change in one of the TC regressions with this case due to the correction of an understood bug. Also, this PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/13588. However, there are some new runtime parameters, so there will have to be a follow-up PR updating MOM6-examples.

@Hallberg-NOAA Hallberg-NOAA merged commit 233f982 into mom-ocean:dev/gfdl Sep 15, 2021
@marshallward marshallward deleted the main_to_dev_gfdl branch October 20, 2021 13:00
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.

5 participants