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

Set ks with bk in m_set_eta #271

Merged
merged 4 commits into from
Jul 11, 2022
Merged

Conversation

mathomp4
Copy link
Member

In trying to fix GEOS-ESM/FVdycoreCubed_GridComp#165 it was found that some of the ks values in m_set_eta.F90 were incorrect. This number is usually 1 less than the number of 0.0-levels in bk.

For example, for the 181-level case, ks=71, but the 1-less-than-0s-in-bk value is 84.

So, what we do here is use:

ks = count(bk = 0.0) - 1

for nearly all cases save two which are unique.

@mathomp4 mathomp4 added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Jun 30, 2022
@mathomp4 mathomp4 requested review from rtodling and wmputman June 30, 2022 17:20
@mathomp4 mathomp4 self-assigned this Jun 30, 2022
@mathomp4 mathomp4 marked this pull request as ready for review June 30, 2022 18:57
@mathomp4 mathomp4 requested a review from a team as a code owner June 30, 2022 18:57
@sdrabenh sdrabenh merged commit 24da735 into main Jul 11, 2022
@sdrabenh sdrabenh deleted the bugfix/mathomp4/fix-ks-m_set_eta branch July 11, 2022 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff The changes in this pull request have verified to be zero-diff with the target branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fv_atm(1)%ks is never initialized
3 participants