Hello Pablo,
I checked your files again, but I couldn't find any READ statement at the line 1734 of neither. I have never rand a coupled simulation, so I don't understand how telemac handles both fortran files together...
What I can tell from the error message:
1) It's an End of File runtime error, so the reason of the error is obvious: the executable tried to read something in a file that was not there. Either because the file is empty or because it actually reached its end. There's no way to know which unless looking at the files. But...
2) The file the executable is reading from was never opened*, for its name is fort.26. When the first I/O command to a logical unit is READ or WRITE, fortran automatically creates a file named "fort.LU", where LU is the number of the logical unit you are reading from/writing to. Consider the following example:
PROGRAM TEST
READ(123) I
END
If you run this you'll see that a file called fort.123 will be created and this error will be thrown:
At line 2 of file test.f95 (unit = 123, file = 'fort.123')
Fortran runtime error: End of file
This is probably what's happening to you. My guess is that somewhere in your code you changed one logical unit by other and thus the error.
I suggest you review you code flow to find out exactly where this "fort.26" is being created.
Otherwise post here all the files needed to reproduce this error.
Regards,
Phelype
*This also happens when you open a file for writing but don't specify a name to it. For example:
PROGRAM TEST
OPEN(123)
END
But all the open statements in your fortran file have a FILE specification, so this is not the case.