Welcome, Guest
Username: Password: Remember me

TOPIC: BINARY DATA FILE 2 does not open in telemac-tomawac

BINARY DATA FILE 2 does not open in telemac-tomawac 8 years 10 months ago #19360

  • komijani
  • komijani's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 27
  • Thank you received: 3
Hello nice people

I have attached a file to "BINARY DATA FILE 2" in telemac and i read this file while runnign telemac in one of the subroutines in my fortran file.

Life goes good until i run telemac with tomawac. In this case Telemac does not open that file "BINARY DATA FILE 2" anymore and i have to open it myself which is not handy. I check the status of the file inside the code and the file is not opened. Has anyone had this issue before? i explored a bit but could not figure out which subroutine and where exactly is opening the input files.

thanks in advance, any help is appreciated

Homayoon
The administrator has disabled public write access.

BINARY DATA FILE 2 does not open in telemac-tomawac 8 years 10 months ago #19362

  • jmhervouet
  • jmhervouet's Avatar
Hello,

You can find several posts on this subject. The logical units of files are changed when you do a coupling (because otherwise the coupled programs could take twice the same logical unit). Using directly the file number, like 25, is thus not general enough. The parameterised way of opening a file consists in your case in replacing 25 by T2D_FILES%ADR(T2DBI2)%LU.

If T2D_FILES and T2DBI2 are not seen in your subroutine, you can add at the beginning :

USE DECLARATIONS_TELEMAC2D, ONLY : T2D_FILES,T2DBI2

In this case T2DBI2 is 25.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

BINARY DATA FILE 2 does not open in telemac-tomawac 8 years 10 months ago #19374

  • komijani
  • komijani's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 27
  • Thank you received: 3
thanks, it was a big help.
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.