CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Float OR Double specified

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 11, 2006, 13:02
Default I am writing a reader and I am
  #1
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
I am writing a reader and I am reading the binary data using C++. Is the data values floats or doubles or is it specified somewhere?

Thanks.
tj22 is offline   Reply With Quote

Old   July 11, 2006, 13:19
Default Unfortunately not specified in
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Unfortunately not specified in the header.

It depends on whether the whole code was compiled in double or single precision. Most installations will be double precision.
mattijs is offline   Reply With Quote

Old   July 11, 2006, 13:39
Default I will be assuming double prec
  #3
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
I will be assuming double precision in my reader. I will note in somwhere
tj22 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Float error stop on it bastien CD-adapco 1 January 27, 2009 06:15
Will it float? Dave Letterman CD-adapco 4 December 8, 2006 23:38
UDF: How to convert a float to a string? Nico Hoffmann FLUENT 1 April 10, 2006 11:00
float point error soundar FLUENT 0 December 17, 2004 04:23
Double the # of cells->double the computing time? JB Main CFD Forum 13 April 5, 2002 18:13


All times are GMT -4. The time now is 07:22.