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

Compilation Order and Single Precision Issues

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2009, 10:14
Default Compilation Order and Single Precision Issues
  #1
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
I just tried compiling the latest git version of OpenFOAM 1.6.x

commit 99d4b831e6f25f3fba273a1fb517aea65e704acd
Author: henry <henry>
Date: Mon Oct 12 13:52:36 2009 +0100

from scratch on Linux and encountered a few minor problems:

1) libfvMotionSolver.so now depends on libforces.so, so during compilation src/postProcessing needs to compile prior to src/fvMotionSolver and src/engine and be reflected in src/Allwmake. Something like:

Code:
.
.
postProcessing/Allwmake
conversion/Allwmake

# Depends on postProcessing/functionsObjects/forces
wmake libso fvMotionSolver
wmake libso engine
.
.
2) Within the new solver applications/solvers/multiphase/interMixingFoam in alphaEqns.H and threePhaseInterfaceProperties/threePhaseInterfaceProperties.[H|C] there are numerous uses of max(...,0.0) whereas for successful compilation for single precision max(..., scalar(0.0)) is required

Hope this is helpful.
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   October 14, 2009, 18:19
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Thanks for the bug reports, the fixes are now in our OpenFOAM-1.6.x git repository.

H
henry 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
Divergence Only with Second Order Discretization RyGuy FLUENT 2 August 11, 2022 18:08
Single or double precision Jonas Larsson Main CFD Forum 16 June 20, 2017 07:53
Performance issues with channelOodLes steja OpenFOAM Running, Solving & CFD 20 July 20, 2005 09:33
P4 1.5 or Dual P3 800EB on Gibabyte board Danial FLUENT 4 September 12, 2001 12:44


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