CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Switch from single precision to double precision

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2010, 06:14
Default Switch from single precision to double precision
  #1
New Member
 
Camille
Join Date: Mar 2010
Posts: 1
Rep Power: 0
kk81 is on a distinguished road
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
kk81 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Single or double precision Jonas Larsson Main CFD Forum 16 June 20, 2017 06:53
New densitybased solver AeroFoam giulio_romanelli OpenFOAM Running, Solving & CFD 48 January 15, 2016 08:20
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
what's wrong about my code for 2d burgers equation morxio Main CFD Forum 3 April 27, 2007 10:38
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


All times are GMT -4. The time now is 06:35.