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

Switch from single precision to double precision

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 11, 2010, 07: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

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
New densitybased solver AeroFoam giulio_romanelli OpenFOAM Running, Solving & CFD 39 October 8, 2013 02:37
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
what's wrong about my code for 2d burgers equation morxio Main CFD Forum 3 April 27, 2007 10:38
Single or double precision Jonas Larsson Main CFD Forum 15 March 26, 2007 23:15
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


All times are GMT -4. The time now is 18:26.