CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Switch from single precision to double precision (https://www.cfd-online.com/Forums/openfoam-bugs/73562-switch-single-precision-double-precision.html)

kk81 March 11, 2010 06:14

Switch from single precision to double precision
 
Dear all,

I run OpenFoam on a Ubuntu 9.10 64-bit computer. It runs with double precision
and I would like to switch to single precision. I changed my etc/bashrc file to

Code:

# WM_PRECISION_OPTION = DP | SP
: ${WM_PRECISION_OPTION:=SP}; export WM_PRECISION_OPTION

and set the environment variable to WM_PRECISION_OPTION to SP. Then i complied the sources :
Code:

./Allwmake
OpenFOAM stills runs with double precision. Can you please tell me what I did wrong ?

Best regards,
Camille


All times are GMT -4. The time now is 03:14.