-
Notifications
You must be signed in to change notification settings - Fork 168
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
N retranslocation exceeds storage + metabolic nitrogen in organ: Leaf #8714
Comments
Hey @par456. This feels like a Science bug. |
I am still seeing that issue, did you happen to change anything in the file? |
One clue is that it almost always happens during "Maturing" phase. |
I added the same check that exists in the Leaf class to the end of the SetNitrogenAllocation of the SimpleLeaf class:
When I remove the other two checks (the lines after // Retranslocation and // Reallocation), I expect the new check to catch the same error, but it does not. So, either this check (that exists in Leaf class as well) doesn't do what is supposed to do, or something else is wrong in the way Reallocation is calculated. |
Hey, @hol353. Do you think this is an issue that might exist in the Leaf class as well? I tried to trace the issue but failed. Do you think the model must calculate the C/N flow components correctly in all growth conditions? BTW, I think these two currently existing checks in SimpleLeaf are placed in the code too late. They must be placed when the calculation of nitrogen.Reallocation is done. |
I've been running in to this issue as well. CroptimizR seems very adept at finding parameter combinations that will run afoul of these two checks. Very small changes can cause the exception to be thrown, too (e.g. a day length of 13 will not be fine, but 13.00001 or 12.99999 will be fine with ControlledEnvironment). I also deleted the two checks in a local copy which allowed CroptimizR to finish. Interestingly, the optimized values do not cause the exception to be thrown with the checks back in place. Nothing major seemed to break upon removing the checks, but I am not familiar enough with the arbitrator to know for sure. |
What crop are you working with? |
This is with Soybean, which uses the SimpleLeaf Model. |
I've also been getting this message with Soybean when trying to calibrate. |
I'm seeing similar in sorghumleaf and am trying to sort out some very convoluted code that gets it there. The conditions are "Exhausted N and plant about to die". |
I'm unsure why it doesn't happen when I replaced the mass balance tests with those from Leaf. See my PR. |
Has anyone been able to solve this issue? |
@Kadogo1 I proposed a 'solution' many months ago, but I am unsure whether there is a more important underlying issue somewhere. You can pull the fix from my branch and see if it helps (at least as a band-aid for now). |
Thanks Brian. I tried using your Example but it still throws the error. How do I incorporate the changes you made in the actual cs file into my model? |
You need to pull the changes I made using Git commands or software like SourceTree. |
@peter-devoil Peter, did you manage to get to the root of this? |
It ended up being specific to sorghum, IIRC. |
What happened?
Example.zip
What Operating System are you on?
Windows
The text was updated successfully, but these errors were encountered: