+(*)Pseudo-salt tracer flux fix with KPP #628
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This series of two pull requests replicates the calculation of the surface salt flux used with KPP inside of the pseudo-salt column physics code, correcting a mismatch in the dimensional rescaling between salinities and the pseudo-salt tracer. Having eliminated the only instance where
fluxes%KPP_salt_flux
was being used, this element was removed from the forcing type, and 5 allocatable elements ofdiabatic_CS
were replaced with simple arrays in the 3 routines where they are used. This change could reduce the high-water memory footprint of the model when KPP is in use, and it simplifies inter-module dependencies. This pull request partially addresses the issue noted at github.com/mom-ocean/issues/1226. All answers are bitwise identical when no dimensional rescaling is being used, but they will change (and be corrected) when salinity is being rescaled. There is also the elimination of an element in a transparent type.The commits in this PR include: