Dear Cath,
Thank you for your prompt answer.
Actually I'm modeling non cohesive sediment transport. I told the steering file to show me D50 as graphic printout to check the distribution is correctly read but I'm getting the default values.
These are the code lines I implemented in init_compo subroutine :
CHARACTER(LEN=150):: SedPath
!
!
!
SedPath='...(dots replace the full path)\sim\granulo\'
!
OPEN(4444, FILE=TRIM(SedPath) // 'D50.txt', FORM='FORMATTED')
DO J=1, NPOIN
NCOUCHES(J) = 1
READ(4444, *) AVAIL(J,1,1)
ENDDO
CLOSE(4444)
OPEN(555, FILE=TRIM(SedPath)//'Log.txt', FORM='FORMATTED')
WRITE(555, 100) 'test d50'
CLOSE(555)
100 FORMAT(A)
Regards,
FEZAI