CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Float OR Double specified (https://www.cfd-online.com/Forums/paraview/61261-float-double-specified.html)

tj22 July 11, 2006 13:02

Float OR Double specified
 
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.

mattijs July 11, 2006 13:19

Unfortunately not specified in
 
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.

tj22 July 11, 2006 13:39

I will be assuming double prec
 
I will be assuming double precision in my reader. I will note in somwhere


All times are GMT -4. The time now is 21:16.