Welcome, Guest
Username: Password: Remember me

TOPIC: Results in double precision?

Results in double precision? 8 years 8 months ago #20173

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello,

I am trying to get TELEMAC-2D to write its output *.slf file in double precision ('SERAFIND') format. My geometry file is in double precision, and I want my result file to likewise be in double precision.

I looked at the telemac2d.dico, and found the following key-words which I activated in my steering file:
GEOMETRY FILE FORMAT ='SERAFIND'
RESULTS FILE FORMAT ='SERAFIND'

However, upon completion of the simulation, the results file is still written as single precision. Am I missing another keyword which I must activate?

To see if the result or geometry files are or are not in double precision, I am using the scan.py script in ./scripts/python27/.

Running scan.py on the result file I get the last eight characters in the title record as 'SERAFIND', but the actual numeric values of the output variables are still in single precision. This may be a hint to what is going on.

I am uploading my dummy example in case someone can take a look.

Thanks,

Pat
Attachments:
The administrator has disabled public write access.

Results in double precision? 8 years 8 months ago #20192

  • riadh
  • riadh's Avatar
Hello Pat

This looks strange ! this is the only keyword you need to use to switch to double precision.
I tried to open your file with BK and this latter couldn't do it ... and this is a good news while BK can not handle double precision.
what do you mean by "numeric values of the output variables are still in single precision". It depends on how you read the values.
To be sure, I prefer to see the size of the output file, just make the test with only h,u,v as ouput for only 1 time step whith simple and double precisions. Thus if you see that the size of the two files is identical, this mean that there is really a problem.
Since last release, the I/O tools of the Telemac system have deeply changed and the possiblity of bugs not detected yet stays very possible.

Thank you for your help.
with my kind regards

Riadh
The administrator has disabled public write access.

Results in double precision? 8 years 8 months ago #20195

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

There is indeed a bug in v7p1r0.
I do not exactly where it was but it is corrected in the trunk.
So the v7p1r1 sould contain the solution.

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.
The following user(s) said Thank You: pprodano
Moderators: pham

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