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

Suggested SimDenitrification modification #57

Conversation

MichaelBarryBMT
Copy link
Contributor

Hi Matt

It may be that when SimDenitrification = 0, don_mineralisation mmol is removed from DON but not added to any other state variables. This causes mass balance issues on ammonium. Removing the single IF statement suggested in this pull request fixes this issue: denitrification is zero, but DON still mineralises to ammonium and is accounted for correctly.

@matthipsey
Copy link
Contributor

matthipsey commented Mar 23, 2022

MB,
Just need to be careful here as aed_nitrogen is also participating in denitrification. The intent maybe that in this case amm is already being incremented in aed_nitrogen so doesn't need to be here.
I'll take a closer look

@MichaelBarryBMT
Copy link
Contributor Author

MichaelBarryBMT commented Mar 23, 2022 via email

@matthipsey
Copy link
Contributor

MB - you are right, this DON mineralisation was getting lost if simDenitrification = 0.
Ive updated on my side and checked in

@matthipsey matthipsey closed this Mar 23, 2022
@MichaelBarryBMT MichaelBarryBMT deleted the SimDentrification branch March 25, 2022 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants