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 advection schemes can apparently give negative values for the sv0 and svm variables.
They are dealt with by a max(0., ..) call when used in modbulkmicro3, but at the moment i do not write back the positive values to svm and sv0, nor do i calculate how much moisture is lost when doing max().
Is it really necessary? Or can we add a max() to the relevant advection functions?
The text was updated successfully, but these errors were encountered:
I think this is a "feature" of some advection schemes. Schemes that guarantee not to over/undershoot are called positive, typically at the price of being more diffusive also. The kappa scheme is supposed to be positive.
Writing back clipped values is tricky because then the scheme is not conserving the total mass anymore. I'd rather not add clipping to the advection functions themselves. Maybe the solution is to use a positive advection scheme, or clip in the routines that cannot handle negative values.
The advection schemes can apparently give negative values for the sv0 and svm variables.
They are dealt with by a max(0., ..) call when used in modbulkmicro3, but at the moment i do not write back the positive values to svm and sv0, nor do i calculate how much moisture is lost when doing max().
Is it really necessary? Or can we add a max() to the relevant advection functions?
The text was updated successfully, but these errors were encountered: