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
assim<- ifelse(a_j<a_c, a_j, a_c)
if (any(abs(assim-gpp/c_molmass) >0.001))
stop("rpmodel(): Assimilation and GPP are not identical.")
I can't immediately see what is wrong - it isn't NA issues as in #11 and the values genuinely are unequal. Having said that, I think all.equal is more robust here as well.
Also - the first line there creating assim: the previous code has just tested that a_j == a_c, so presumably a_j or a_c could be used directly rather than going to the computational expense of combining them?
The text was updated successfully, but these errors were encountered:
There is a problem with the test for assimilation == GPP when using C4=TRUE:
The lines are:
I can't immediately see what is wrong - it isn't NA issues as in #11 and the values genuinely are unequal. Having said that, I think
all.equal
is more robust here as well.Also - the first line there creating
assim
: the previous code has just tested thata_j == a_c
, so presumablya_j
ora_c
could be used directly rather than going to the computational expense of combining them?The text was updated successfully, but these errors were encountered: