Welcome, Guest
Username: Password: Remember me

TOPIC: reading *txt file in TELEMAC

reading *txt file in TELEMAC 5 years 5 months ago #33627

  • nikos
  • nikos's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Thank you received: 1
Dear community,

I have a file with harmonics for tide calculations at boundaries, and I have declared the name of that file into my cas file as follows

FORMATTED DATA FILE 2 : './harmonics.txt'

but I get an error message:

|runCode: Fail to run
|/home/nik/testt/t2d1.cas_2019-05-28-23h07min15s/out_princi_1
|~~~~~~~~~~~~~~~~~~
|At line 257 of file t2dfort.f (unit = 9, file = 'fort.9')
|Fortran runtime error: End of file


I have checked in my fortran file where I modified bord.f that it returns the correct file name when I type :

print*,T2D_FILES(T2DFO2)%NAME

Also before the line 257 where it tries to read the file, the compiler executes with no problem the command REWIND(T2DFO2). To make it even better, it worked fine with version 6p3r1

Many thanks and regards
The administrator has disabled public write access.

reading *txt file in TELEMAC 5 years 5 months ago #33651

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

This is because since v7p0 you should not use T2DFO2 but T2D_FILES(T2DFO2)%LU to get the id on which to read.

Hope it helps.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: pham

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