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
The problem only arises if a user provides soilm as a scalar but meanalpha as an array. That's an odd thing to want to do, but might arise if someone wants to see how the stress factor changes for a given soil moisture in different sites.
In this case - in the nested ifelse statements - the first test 'iterates' over the comparison of the single scalar soilm to x1. If meanalpha is an array, the output is therefore either 1 or the first element only of the no argument:
Hi,
There is a bug in
soilmstress
at the line:https://github.com/computationales/rpmodel/blob/master/R/subroutines.R#L124
The problem only arises if a user provides soilm as a scalar but meanalpha as an array. That's an odd thing to want to do, but might arise if someone wants to see how the stress factor changes for a given soil moisture in different sites.
In this case - in the nested
ifelse
statements - the first test 'iterates' over the comparison of the single scalarsoilm
tox1
. Ifmeanalpha
is an array, the output is therefore either 1 or the first element only of theno
argument:A bit obscure, I admit!
The text was updated successfully, but these errors were encountered: