+Refactor totalTandS to optionally work with scaled variables #827
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.
Refactored
totalTandS()
andtotalStuff()
to optionally work with scaled variables, by adding an optionalunit_scale_type
argument and a optional argument specifying the unscaling of thickness tototalTandS()
and an optionalunscale
argument tototalStuff()
. The comments describing the units of 19 variables were modified to reflect the various units that might be used. All solutions are bitwise identical, and output is unchanged when dimensional rescaling is not being used, but the debugging output can now be unaltered by the use of dimensional rescaling. There are new optional arguments to two publicly visible routines.This change has been tested via calls to
totalTandS()
added tostep_MOM_thermo()
, but becausetotalTandS()
is only intended for debugging, these testing calls are commented out. I am uncertain whether to ultimately retain these comments to illustrate the use oftotalTandS()
or whether to delete them before this PR is merged into dev/gfdl, but retaining them for now seems like they may help the PR review process.