Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with Discharge Gage file reading on Linux

Problem with Discharge Gage file reading on Linux 13 years 8 months ago #1151

  • jmenseee
  • jmenseee's Avatar
Hi,
I am using TELEMAC with a dischage gage as domain boundary condition.
My simulation works perfectly fine under a windows environnement (I have v5p9 release on the computer) but it shows some issues under Linux (version6). I get the following error :
" ERREUR DANS LE FICHIER DES COURBES DE TARAGE". Here is my "ctar" file :
# COURBE DE TARAGE FRONTIERE 2
#
Q(2) Z(2)
m3/s m
38.39 89.31
275.6 90.65
591.8 91.21
1052. 91.51
1291. 91.99
2250. 93.22
3131. 94.05
4800. 95.72

I don't know if it's because of the difference of version (but I can't find anything new on discharge gage on version 6 user manual) or it can be a problem with the linux installation of TELEMAC ?
Please note that I also have a "fliq" (fichier des frontières liquides) file for the other boundary and TELEMAC reads it perfectly on both Windows and Linux.

Do you have any leads on that matter ? I enclosed my files

File Attachment:

File Name: mail2.zip
File Size: 734206
.

King regards.
JM
The administrator has disabled public write access.

Re:Problem with Discharge Gage file reading on Linux 13 years 8 months ago #1155

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi JM
Did you check there was no problem of CR/LF on the linux version?
Christophe
The administrator has disabled public write access.

Re:Problem with Discharge Gage file reading on Linux 13 years 8 months ago #1156

  • jmenseee
  • jmenseee's Avatar
Hi,
yes, I created a whole new ctar file under Linux then I tried to edit the working fliq file to match discharge gage syntax (all lines are ending by a LF though), but nothing new happened.
I'm wondering if it is not a problem with the Linux installation although everything but the ctar file is working. :unsure:
The administrator has disabled public write access.

Re:Problem with Discharge Gage file reading on Linux 13 years 8 months ago #1157

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
I had a short look into your file.
Maybe you could delete the last line (which is empty).
Christophe
The administrator has disabled public write access.

Re:Problem with Discharge Gage file reading on Linux 13 years 8 months ago #1237

  • LPoirel
  • LPoirel's Avatar
Here is the answer we got from Dr A. Stoukov (ENSEEIHT) :

Le problème vient des compilateurs fortran GNU (gfortran ou g95) qui gèrent le end-of-file à sa façon,
différente de celle du compilateur Intel (chez MM) ou du CVF (dans les salles Windows).
En effet,dans read_fic_curves.f, le résultat de l'instruction
READ(NFIC,FMT='(A)',END=1000,ERR=999) LIGNE
n'amène pas le programme au label 1000 quand le fichier est lu jusqu'à la fin mais le programme va au label 999.
Telemac a été développé avec Visual DEC Fortran, le prédécesseur de CVF et donc il se comporte bien quand on utilise les compilateurs Intel et CVF .

Pour remédier au problème de lecture de la courbe de tarage avec le gfortran sous Linux, il suffit d'ajouter une ligne supplémentaire avec un #
# COURBE DE TARAGE FRONTIERE 2
#
Q(2) Z(2)
m3/s m
38.39 89.31
275.6 90.65
591.8 91.21
1052. 91.51
1291. 91.99
2250. 93.22
3131. 94.05
4800. 95.72
#

I won't translate the whole email, but adding a comment line at the end of the file solved the problem.

Thank you!

Louis Poirel
X-ENSEEIHT student
(working with original poster on this project)
The administrator has disabled public write access.

Re:Problem with Discharge Gage file reading on Linux 13 years 8 months ago #1239

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Thank's for this answer. A solution would be putting also ERR=1000 in the READ statement, though this is a bit dangerous. I'll look at that.

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

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