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. |
What happened?
Example.zip
What Operating System are you on?
Windows
The text was updated successfully, but these errors were encountered: