Hi
I don't think that what you are trying to do will work since the FDM array is independent of space and time - only the mean diameter FDM and the percent of each class AVAIL are allowed to vary spatially -
Instead of changing the FDM,I would recommend to change the avail (percent of each class) array instead and the number of classes.
Hope this helps, Cath
PS for example, for fine sediments on one side and coarse material on the other, put two classes fdm(1) = 0.001 fdm(2)= 0.002
!
DO I=1,NPOIN
DO J= 1,NOMBLAY
IF (Y(J)<1152228.D0) THEN
AVAIL(I,J,1)= 0.
AVAIL(I,J,2)= 1.0D0
ELSE
AVAIL(I,J,1)= 1.0D0
AVAIL(I,J,2)= 0.0
ENDIF
ENDDO
ENDDO