Hi Sebastian,
If I well understand your problem, you're trying to read a serafin file, on a different grid, thanks to the "BINARY DATA FILE 2" (channel T2DBI2) in the bord.f subroutine, and you have set "BINARY DATA FILE 2 FORMAT = 'SERAFIN '" (with a space at the end), I'm suspicious about fidc='STD' in your bord.f subroutine, and bout the channel 2 you have in the printouts, normally it's the channel 25 for this file... If it's well the case, this file is already open previously by the code.
I think your error message comes from this line:
CALL LIT(FRES,WRES,NBVAR,TITRES,2,'I',fidi,fidc,ISTAT)
You should add a space character after 'I' and so replace the previous line by:
CALL LIT(FRES,WRES,NBVAR,TITRES,2,'I ',fidi,fidc,ISTAT)
Another (simpler) way to read a serafin file is to use the subroutines of the hermes module (get_bnd*, get_mesh*, get_data*)
You can define a bief mesh object dedicated to your mother grid, and store the read data on bief objects (also related to your mother grid).
Hope this helps.
Regards,
Laurent