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
In SPLASH::run_one_day() and equivalent functions, tdrain can and does become nan, which should be checked and handled separately.
The relevant lines of code are here:
if((R > 0.0) && (sm > Wmax)){
// calc theoretical time to drain out the area upslope at the current transmittance
t_drain = -1.0*log(1.0-(log(Kb)*(Au*R/Q)))/log(Kb);
// cout << "R/Q/t_drain = " << R << "/" << Q << "/" << t_drain << '\n';
// using the usual decaying drainage eqn Q_t=Q_o Kb^t, how muchs is the initial input?
//q_in_f = Qt/(Ai*pow(Kb,t_drain));
q_in_f = (Qt-Au*R*log(Kb))/Ai;
}
The text was updated successfully, but these errors were encountered:
In SPLASH::run_one_day() and equivalent functions, tdrain can and does become nan, which should be checked and handled separately.
The relevant lines of code are here:
The text was updated successfully, but these errors were encountered: