Welcome, Guest
Username: Password: Remember me

TOPIC: error in telemac2d reading formatted wind file V7P2v0

error in telemac2d reading formatted wind file V7P2v0 7 years 9 months ago #25390

Hi
just like to record error in telemac2d reading formatted wind file both my own application and when I ran the wind example for telemac2d. The consistent error appears to be that it only reads the first two records ( 0.0 sec and 100. sec in the wind example file) of the formatted wind file and no more and then perceives that the wind file is not of sufficient length. If you extend the simulation time in the wind example this error will occur.
perhaps this has already been identified in the trunk ?

Regards
Tony C
The administrator has disabled public write access.

error in telemac2d reading formatted wind file V7P2v0 7 years 9 months ago #25391

here is the wind test file folder which presents the problem
of only reading the first two wind entries before stopping

File Attachment:

File Name: wind_test.zip
File Size: 7 KB



regards
TonyC
The administrator has disabled public write access.

error in telemac2d reading formatted wind file V7P2v0 7 years 9 months ago #25392

B)
I think I have debugged the problem the Meteo subroutine appears to forget the unit number of the wind file after first time step referred to in the Subroutine as UL so I have just reminded it for subsequent time steps but possibly needs to be saved I have done a quick fix see attached

Regards
TonyC

File Attachment:

File Name: meteoTC.f
File Size: 12 KB
The administrator has disabled public write access.

error in telemac2d reading formatted wind file V7P2v0 7 years 8 months ago #25624

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Yes, a local variable like UL is forgotten from one call of the subroutine to the other. To avoid this you just have to add a line :

SAVE UL

after the declarations. A command SAVE will save all local variables.

With best regards,

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

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