Hi c.coulet,
Yes, you were right about that and also I had to use the variable "BOUNDARY_COLOUR" to refer to boundary nodes since I'm on parallel computation, thank you so much.
Now, when running the simulation I get the error attached. I was wondering if this DO LOOP to feed spectral data to the boundary is correct?
IF(AT .EQ. AT_WAVE(K)) THEN !AT_WAVE = time
IF(NCSIZE.GT.0) THEN ! PARALLEL
DO K = 1, NUMPOINTS !number of time steps in data
DO KK=1,NUMSTA !number of boundary nodes
DO S=1,NPTFR
IF (BOUNDARY_COLOUR%I(S) .EQ. XX(KK)) THEN !XX:boundary numbering
HM0L = HM0L_TS(K,KK+1)
FPICL = FPICL_TS(K,KK+1) !to skip time step reading
TETA1L = TETA1L_TS(K,KK+1)
! WRITE(*,*) '###########', AT_PP(K), HM0L, FPICL,TETA1L
ENDIF
ENDDO
ENDDO
ENDDO
ENDIF
Cheers,
Nayef