You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting floating point errors with the forage model related to the fact that RADSH is negative due to ADDF being negative in CANABS() in ETPHOT.for. When I uncomment the check for ADDF < 0.0 (see below), the problem goes away. The issue seems to be limited to situations with very low LAI.
Is there a reason why the checks for negative numbers are commented out in CANABS() in ETPHOT.for? Is there any problem with allowing ADDF, ADDFSL, etc to be set to zero when the original calculation is negative? See here:
@chporter and @kthorp ,
I'm getting floating point errors with the forage model related to the fact that
RADSH
is negative due toADDF
being negative in CANABS() in ETPHOT.for. When I uncomment the check forADDF < 0.0
(see below), the problem goes away. The issue seems to be limited to situations with very low LAI.Is there a reason why the checks for negative numbers are commented out in CANABS() in ETPHOT.for? Is there any problem with allowing
ADDF
,ADDFSL
, etc to be set to zero when the original calculation is negative? See here:dssat-csm-os/SPAM/ETPHOT.for
Lines 1793 to 1800 in a20a2b5
dssat-csm-os/SPAM/ETPHOT.for
Lines 1814 to 1827 in a20a2b5
dssat-csm-os/SPAM/ETPHOT.for
Lines 1862 to 1869 in a20a2b5
dssat-csm-os/SPAM/ETPHOT.for
Lines 1883 to 1890 in a20a2b5
The text was updated successfully, but these errors were encountered: