-
Notifications
You must be signed in to change notification settings - Fork 1
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
Phosphorus, N2, POM, and PX #88
Conversation
Branched from current main
Still a few wrinkles to iron out. The following have negative values as test answers and I added code so none of the constituents have negative concentrations. Carbon test_change_kbod_20 test_change_kah_20_user test_change_kaw_20_user DOX test_change_krb_20 CBOD test_change_kbod_20 test_changed_ksbod_20
Pressure is now in millibar
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.
Only thing that seems weird is the default pressure of 2000+ mb. I think the range is like 900-1100.
Looks like the following tests failed:
Do you have ideas as to why this is or should we help dig into these tests? |
The first failed test - carbon_calculations - test_changed_kbod_20 - appeared to be a bug in RAS potentially. It was showing a matching value (.8048) after the second timestep, but showing the -45.77 value after the first timestep. The manual calcs show the .8048 value. I feel pretty solid that we are not way off with this one and would feel comfortable asserting = to .8048 with a note that there was a weird thing going on in the RAS modules. The other errors are due to Kelsey's change that sets all negative values equal to 0 instead of letting them go negative. Seems like a reasonable change, though RAS allows negative concentrations. We could try to test other values for these tests so that we aren't running into this issue for now. I think these values were validated to RAS and previously passing so if there's a way to merge with these tests failing for now, I'm cool with that. |
Negative concentrations are of course physically impossible, but they can be the result of computational issues such as too long of a time step. "Allowing" them at least permits the modeler to see that something is not right; setting them to zero just hides the problem temporarily. That may be enough in some cases but in others the simulation can either crash or (far worse IMO) proceed to completion with erroneous but plausible-looking results. |
Thanks for your input @PeterKlaver -- we discussed on a check-in today and we think it makes sense to allow the negative numbers so the modeler can see the issue. @kewalak, are you able to update those processes accordingly (and hopefully then get the tests to pass)? |
@kewalak, are you able to update the processes and tests as described by by @sjordan29 in #88 (comment)? I would like to issue a release this week for the NSM work that we've accomplished to date and recently demoed to @TSteissberg . |
@aufdenkampe I will get it done by end of day tomorrow! |
All tests passing besides one test in Carbon and one in CBOD marked to fail with reason known issue with kbod 20 test TBA.
@sjordan29 @aufdenkampe adjusted to allow for negative values. All tests are passing besides one in carbon and one in CBOD marked to fail with reason "known issue with kbod 20 test TBA". |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #88 +/- ##
==========================================
+ Coverage 89.13% 89.17% +0.03%
==========================================
Files 25 25
Lines 1712 1709 -3
==========================================
- Hits 1526 1524 -2
+ Misses 186 185 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks @kewalak. It looks like
Any thoughts @aufdenkampe @kewalak? |
@sjordan29 @aufdenkampe I went ahead and removed it. It is not used anywhere and would be easy enough to just add back in at a later time. |
@kewalak, thanks!! As soon as all tests pass, go ahead and merge. I'll then issue a release. I have one drafted if any of you want to add any additional release notes. |
Still a few wrinkles to iron out. The following are test that are failing since they have negative values as test answers, and I added code so none of the constituents can have negative concentrations.
Carbon
test_change_kbod_20
test_change_kah_20_user
test_change_kaw_20_user
DOX
test_change_krb_20
CBOD
test_change_kbod_20
test_changed_ksbod_20
a75305c