Hello,
It seems that I have stumbled across another issue, which involves the ADD_PARTICLE subroutine. What I would like to do is essentially drop every X timesteps, Y number of floats/algae simultaneously. In the end, the question is whether the ADD_PARTICLE subroutine is compatible with what I would like to do.
So far, I can insert multiple floats simultaneously
once, however, I cannot sort out the tagging of each particle. My code is:
DO I=1,NFLOT_MAX
CALL ADD_PARTICLE(XFLOT(I),YFLOT(I),0.D0,I,NFLOT,
& NFLOT_MAX,XFLOT,YFLOT,YFLOT,TAGFLO,
& SHPFLO,SHPFLO,ELTFLO,ELTFLO,MESH,1,
& 0.D0,0.D0,0.D0,0.D0,0,0)
WRITE(*,*) LT, XFLOT(I), YFLOT(I), TAGFLO(I)
ENDDO
and the output of the WRITE statement is:
100 843198.75639999995 4020831.8480000002 2147483647
100 843167.44850000006 4020870.8330000001 2147483647
...
and so on.
I do not understand how the "2147483647" tag occurred and in general how the tagging of floats works within the ADD_PARTICLE subroutine. I need to sort this out before I move on to add another set of floats at a following timestep (if that is possible at all).
Any insight on the problem will be appreciated.
Regards,
Costas