Hello,
I'm doing the mixed sediment modelling and recently I've found a problem in the subroutine SUSPENSION_FLUX_MIXTE. I used the debugging mode and I found, in my case, the variable F2 (percentage of the mass of mud) could be NaN if some layers are completely eroded.
So I changed the expression
F2= MS_VASE(I, J)/(MS_VASE(I, J) + MS_SABLE(I, J))
to
F2= MS_VASE(I, J)/MAX(MS_VASE(I, J) + MS_SABLE(I, J),1.D-04)
Maybe it's safer to use sand fraction instead of mass percentage when the layer thickness is zero.
Kind regards,
Qilong