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

Total Nitrogen (SLNI) input from SOIL.SOL saved equals to -9.0 in the temporary file when should be -99.0 #386

Open
fabiooliveira72 opened this issue Dec 1, 2023 · 0 comments

Comments

@fabiooliveira72
Copy link
Contributor

NOTE that there is no error. However it is not a good practice.

Total Nitrogen (SLNI) input from SOIL.SOL saved equals to -9.0 in the temporary file when should be -99.0. The value of this variable is also stored in SOILPROP and sent to other subroutines for later use.

TOTN is set to -9 and then sets TotOrgN. If there is no TOTN (TOTN = -9) TotOrgN will be set to -99. Then, TotOrgN will be tested at SOMINIT_c.for at ~line 237 and will jump to the ELSE statement where has 'UseDefaultN = TRUE'.

This will trigger LayerLoopN2 with default SOM1E, SOM2E and SOM3E values by DSSAT.

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

No branches or pull requests

1 participant