-
Notifications
You must be signed in to change notification settings - Fork 232
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
misplaced parentheses in sfc_src usage in tracer_vertdiff, tracer_vertdiff_Eulerian #1415
Comments
Some followup... The effect of the change of parentheses in 982c373 was nullified, when the argument Related to the setting of
This comment seems to be out of date since commit dfd22a2, when the argument |
We have a fix for this and would like to know if the bug needs to be preserved for the purposeses of recovering old answers. Answers will change for experiments with |
I think that in this case, we need not reproduce the old answers, for several reasons:
|
@Hallberg-NOAA talked about this yesterday and we both agree on the above points. There's some work that I will do to address some of the more esoteric changes that might need to be done for the pseudosalt tracer. Could you ping me as a reviewer on your PR to dev/ncar? |
@Hallberg-NOAA and @ashao, thank you. Yes, we will ping you to review this PR. |
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 correction to this problem has been merged into the main branch of MOM6, and into the dev/gfdl branch as a part of MOM6 PR #1491. |
The variable
sfc_src
in subroutinetracer_vertdiff
is declared ashttps://github.com/NOAA-GFDL/MOM6/blob/c432872bebda98b0acaff7d2378dc5a8523d3377/src/tracer/MOM_tracer_diabatic.F90#L54-L56
It is subsequently used in the block
https://github.com/NOAA-GFDL/MOM6/blob/c432872bebda98b0acaff7d2378dc5a8523d3377/src/tracer/MOM_tracer_diabatic.F90#L150-L156
and similar blocks further down.
Its usage would be dimensionally consistent if its units were
CU
, but it is documented to have unitsCU H
. So somethings seems amiss. It looks like the parentheses on these usage lines changed in commit 982c373. The git diff for this block is@ashao, the author of this commit, agrees that this change in parentheses is problematic.
This change in parentheses occurred in 2 blocks in
tracer_vertdiff
and appears to have been duplicated intotracer_vertdiff_Eulerian
with commit 7598390.The text was updated successfully, but these errors were encountered: