Hi
I wish to modify the bord.f subroutine to read a binary file. I have included the binary file via the steering file as BINARY DATA FILE 1, then within bord.f I try and read from it as follows:
USE DECLARATIONS_TELEMAC2D, ONLY: T2D_FILES,T2DBI1
INTEGER NBI1
DOUBLE PRECISION TEMP
NBI1 = T2D_FILES(T2DBI1)%LU
REWIND(NBI1)
READ(NBI1)TEMP
I can read the binary file in a standalone FORTRAN program but when I try and read it in bord.f as detailed above I get the following error from the READ statement:
forrtl: severe(39): error during read, unit 24
The code runs with READ(NBI1) i.e. not storing the value. Does anyone know why this doesn't work please? In the stand alone program I open the binary file as follows:
OPEN(NBI1,FILE='data.dat',status='old',form='unformatted')
Thanks
Fay