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

Add buoyancy flux to applyBoundaryFluxes() #543

Open
adcroft opened this issue Jul 2, 2017 · 9 comments
Open

Add buoyancy flux to applyBoundaryFluxes() #543

adcroft opened this issue Jul 2, 2017 · 9 comments

Comments

@adcroft
Copy link
Collaborator

adcroft commented Jul 2, 2017

In issue NOAA-GFDL/MOM6-examples#128 it was noted by @StephenGriffies that multiple calls to extractFluxes1d() is wasteful (and in that issue was causing complications with diagnostics). A second call to extractFluxes1d() is being made in order to calculate a buoyancy flux. Note that this second call has different arguments/options hard-coded. We would be better served calling extractFluxes1d() just once from applyBoundaryFluxes() and calculating a buoyancy flux there.

@breichl
Copy link
Collaborator

breichl commented Jul 3, 2017 via email

@adcroft
Copy link
Collaborator Author

adcroft commented Jul 3, 2017 via email

@breichl
Copy link
Collaborator

breichl commented Jul 3, 2017 via email

@adcroft
Copy link
Collaborator Author

adcroft commented Jul 3, 2017 via email

@breichl
Copy link
Collaborator

breichl commented Jul 3, 2017 via email

@StephenGriffies
Copy link
Contributor

When I return after a brief holiday, I will try to check what you already ran, Brandon, to see if the hfds diagnostic is correct based on your changes.

@StephenGriffies
Copy link
Contributor

@breichl any reason to keep this issue open? Can you please check?

@breichl
Copy link
Collaborator

breichl commented Oct 5, 2020

I left some notes about this in the code and a commit, which concluded with "This commit does not change answers, but similar to #544, this is not a permanent fix as the code could be simplified to remove '_rate' terms (will introduce round-off answer changes) and a more permanent solution for useRiverHeatContent and useCalvingHeatContent. These points are described within code comments."

We have a protocol established now of adding flags with the new code that removes the round-off error associated with the duplicate call (to get the '_rate' terms), and then changing answers and deleting old code. So I think this should probably be kept open for now, and I'll add the flags to clean that part up. I'm unsure what the issues were with useRiverHeatContent and useCalvingHeatContent, so will revisit this when I'm looking at the code again.

@StephenGriffies
Copy link
Contributor

Thanks @breichl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants