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.
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
Update MOM_mixed_layer_restrat.F90 #568
Update MOM_mixed_layer_restrat.F90 #568
Changes from all commits
b4c39f1
9856fee
7032df3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 946 in src/parameterizations/lateral/MOM_mixed_layer_restrat.F90
Codecov / codecov/patch
src/parameterizations/lateral/MOM_mixed_layer_restrat.F90#L946
Check warning on line 963 in src/parameterizations/lateral/MOM_mixed_layer_restrat.F90
Codecov / codecov/patch
src/parameterizations/lateral/MOM_mixed_layer_restrat.F90#L963
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to convert this to units of
[L ~> m]
, the denominator should be multiplied by(US%L_to_Z * GV%H_to_RZ* tv%SpV_avg(i,j,1))
when in fully non-Boussinesq mode or in Boussinesq mode the denominator should be multiplied by(GV%H_to_Z*US%L_to_Z)
. (Compare this with the expressions that set wpup at lines 943 and 968.) Were we to make this change here, the conversion factor at line 1814 would need to be changed toUS%L_to_m
, while the units oflf_bodner_diag
on line 811 would stay as they are.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have implemented this suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line has a horizontal indexing error in non-Boussinesq mode because in that case the appropriate rescaling factor is a function of
(i,j)
.Check warning on line 998 in src/parameterizations/lateral/MOM_mixed_layer_restrat.F90
Codecov / codecov/patch
src/parameterizations/lateral/MOM_mixed_layer_restrat.F90#L998
Check warning on line 1000 in src/parameterizations/lateral/MOM_mixed_layer_restrat.F90
Codecov / codecov/patch
src/parameterizations/lateral/MOM_mixed_layer_restrat.F90#L1000