Welcome, Guest
Username: Password: Remember me

TOPIC: Rating curve : error in stage discarge curves file V6P2

Rating curve : error in stage discarge curves file V6P2 11 years 9 months ago #7589

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

I am trying to set a rating as downstream boundary condition in V6P2. I used a former rating curve file I created on V6P1 as a model which now runs normally on V6P1 but not on V6P2 (I have just tested). I get an error message stating that there is an error in my stage discharge curves file.

I tried to find out where does the error could come from, but without success. Can it be a problem due to the change of version?

My rating curve file and my steering file are attached.

Thanks in advance,
PL

File Attachment:

File Name: cas.txt
File Size: 4 KB


File Attachment:

File Name: ratingcurve.txt
File Size: 0 KB
The administrator has disabled public write access.

Rating curve : error in stage discarge curves file V6P2 11 years 9 months ago #7599

  • jmhervouet
  • jmhervouet's Avatar
Hello,

I do not know. The next version will accept tabs in the first lines giving Q(1) Z(1) etc. but not version 6.2. Remove tabs if there are some. Also add a carriage return at the end, it may be the most probable problem (though it should work some compilers don't when a final carriage return is missing). Also check for and remove Windows carriage returns on Linux or vice versa.

Regards,

JMH
The administrator has disabled public write access.

Rating curve : error in stage discarge curves file V6P2 11 years 9 months ago #7603

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Thanks for your reply. Even though I am not quite sure of how do insert a "carriage return", I tried to add a final blank line after my last data line with 1/ simple return key 2/ ctrl + return key 3/ shift + return key.
And it still does not work. Forgot to say that I don't have any tabs, only spaces between every single key.

For information I am on windows and I use gfortran.

It's a bit sad because I cannot switch to 6.1 due to the fact that I have tubes in my model. Is there any way to fix this problem, or should I wait for the next version? Did other users have the same problem?

Thanks in advance,
PL
The administrator has disabled public write access.

Rating curve : error in stage discarge curves file V6P2 11 years 9 months ago #7604

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hello, try to put a number sign # at the end of the file:

----
# Fichier des courbes de tarages
# Frontiere 1 (aval)
Q(1) Z(1)
m3/s m
0.0 113.93
0.1 114.0
2.55 114.32
10.90 114.43
16.47 114.47
658.77 115.64
2112.08 116.8
#
----

Hope this helps,
Clemens
The administrator has disabled public write access.
The following user(s) said Thank You: pilou1253

Rating curve : error in stage discarge curves file V6P2 11 years 9 months ago #7605

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi Konsonaut!

Thanks a lot, problem fixed!

Regards
PL
The administrator has disabled public write access.

Rating curve : error in stage discarge curves file V6P2 11 years 9 months ago #7606

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Obviously the compiler returns an error which is only an end of file, but if I overcome this, mixing ERR= and End= statements in READ commands, then other errors may be overlooked, so I do not know what to do.

JMH
The administrator has disabled public write access.
Moderators: pham

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