-
Notifications
You must be signed in to change notification settings - Fork 304
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
Fixes shortwave absorption for shallow cells #804
Fixes shortwave absorption for shallow cells #804
Conversation
Currently for very shallow cells some of the incident shortwave radiation is not applied to the column. This adds that missing heating back to the bottom cell.
@maltrud could you post a quick figure here showing this fixes the non conservation of heat? @mark-petersen this PR is needed as soon as we can. The ocean has a non-conservation of heat right now, it is small but definitely there. If we could make this PR high priority I'd appreciate it. |
i think the OMP loop needs to have fluxRemaining as a private variable?
should be |
in my version, i did the bottom check the same way as the other heat fluxes. i'm not sure it matters, but i thought i'd point it out:
|
@maltrud thanks for catching the missing thread private variable. I will fix that. On the other form for fluxRemaining. Do we have places where maxLevelCell(iCell) = 0? I don't think that is allowed. The other check on fluxRemaining > 0 also seems unnecessary to me, for the exponential it should never be less than 0 and if it is zero it seems fine to just do the calculation, perhaps more performant? @mark-petersen what do you think? I can add it back if you'd like |
Our current meshes cull out any such cells but MPAS-Ocean is supposed to run in situations where |
Great point @xylar I will add that check back in. |
I just added a check on |
Fixes shortwave absorption for shallow cells #804
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 looks good. Tested with gnu and intel, both debug, on nightly regression suite.
Update mpas-ocean: Fixes shortwave absorption for shallow cells Brings in a new mpas-source submodule with changes only to the ocean core. It fixes an issue where, for very shallow cells, some of the incident shortwave radiation is not applied to the column. This adds that missing heating back to the bottom cell. see MPAS-Dev/MPAS-Model#804 [non-BFB]
Update mpas-ocean: Fixes shortwave absorption for shallow cells Brings in a new mpas-source submodule with changes only to the ocean core. It fixes an issue where, for very shallow cells, some of the incident shortwave radiation is not applied to the column. This adds that missing heating back to the bottom cell. see MPAS-Dev/MPAS-Model#804 [non-BFB]
…evelop Fixes shortwave absorption for shallow cells MPAS-Dev#804 Currently for very shallow cells some of the incident shortwave radiation is not applied to the column. This adds that missing heating back to the bottom cell.
Fixes shortwave absorption for shallow cells MPAS-Dev#804
…evelop Fixes shortwave absorption for shallow cells MPAS-Dev#804 Currently for very shallow cells some of the incident shortwave radiation is not applied to the column. This adds that missing heating back to the bottom cell.
Currently for very shallow cells some of the incident shortwave
radiation is not applied to the column. This adds that missing heating
back to the bottom cell.