-
Notifications
You must be signed in to change notification settings - Fork 371
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 carbon to conservation check analysis member #5151
Conversation
@maltrud - I tested this in a ne30pg2_r05_EC30to60E2r2 BGCEXP_CNTL_CNPECACNT_1850 configuration and it died after the first month with:
I think you need some kind of accumulator for the number of times you've added sums into the accumulation arrays? In my case, after it went to output the carbon conservation information after a month, the relative error and accumulated relative error are the same:
but the bounds checks you're applying to the accumulated one has been multiplied by the number of time steps while the relative one is compared to a hardcoded 1.0e-08. That one might need to have some factor that considers the number of steps/days that have been accumulated, especially since the budget output could be per step/day/month/year? Anyway, I'm retesting with 2.0e-08 just to see if that allows it to hold together.... |
components/mpas-ocean/src/analysis_members/Registry_conservation_check.xml
Show resolved
Hide resolved
As a first sanity test, I compiled MPAS-Ocean standalone with gnu and intel, optimized and debug, and ran the nightly suite with @maltrud can you describe here your testing and results with this analysis member on and ocean BGC variables on? |
I ran a six-month test with @maltrud's new updates and get this:
so the fluxes that both calculate match very well. @maltrud -- does it make sense in the ocn budget to scale the fluxes to be kg/m^2/s1.e10 instead of kg/m^2/s1.e6? We might get a few more significant digits that way.... |
@jonbob yes I should have used 1.e10 instead of 1.e6 for consistency with the cpl output. I'll push that change asap. |
@katsmith133 please review. |
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.
Approving based upon @jonbob's test and visual inspection
Thanks @maltrud -- after the latest update, the output now looks like:
and it much easier to compare with the cpl budget |
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.
Approved, based on testing
…(PR #5151) Add carbon to mpas-ocean conservation check analysis member This PR adds carbon to the conservation check analysis member. Output is written to both the log file and conservation check netcdf file. Carbon variables are written to the netcdf file even if BGC is not turned on (unless the user modifies streams.ocean), but not to the log file. [BFB]
passes sanity testing, merged to next |
merged to master |
This PR adds carbon to the conservation check analysis member. output is written to both the log file and conservation check netcdf file. carbon variables are written to the netcdf file even if BGC is not turned on (unless the user modifies streams.ocean), but not to the log file.