CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM-1.5-dev SVN 1563 on Fedora 12 (32-bit) - Successful (

philippose January 4, 2010 14:06

OpenFOAM-1.5-dev SVN 1563 on Fedora 12 (32-bit) - Successful
Hello everyone,

First and foremost... A Very Happy New Year to you all :-)!

Just wanted to report, that I just completed compiling OpenFOAM-1.5-dev on my laptop running Fedora 12.... specific details of the build are:

** OpenFOAM version: 1.5-dev SVN Ver. 1563
** Operating System: Fedora 12 (32-bit)
** GCC version: 4.4.2
** ParaView version: 3.7.0 (CVS update: 14.12.2009)
** Parallel library: OpenMPI

In order to compile successfully, I had to make the following changes to the source code, which have been mentioned earlier by users compiling OpenFOAM-1.5-dev on recent Ubuntu and Solaris systems with GCC 4.x.x compilers:

1. At line number 43 in the file: <OpenFOAM src>/OpenFOAM/include/OSspecific.H, the following line was added:

#include <stdint.h>



#ifndef OSspecific_H
#define OSspecific_H

#include "fileNameList.H"
#include "long.H"

#include <stdint.h>
#include <sys/types.h>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

2. The file: <OpenFOAM src>/meshTools/triSurface/surfaceFeatures.C was modified at line number 769 to add on a dynamic_cast for "samples":


    // Build tree out of all samples.
    octree<octreeDataPoint> ppTree
        treeBoundBox(dynamic_cast<const UList<point>&>(samples)),      // overall search domain
        octreeDataPoint(samples),  // all information needed to do checks
        1,          // min levels
        20.0,      // maximum ratio of cubes v.s. cells
        100.0      // max. duplicity; n/a since no bounding boxes.

A similar occurance at line 870 of the same file was modified in the same manner.

** NOTE #1: Since I use my own compile of Paraview-3.7.0, I had to copy the plugins generated by PV3FoamReader ( and into the plugins folder of the ParaView-3.7.0 install which is located within the "bin" folder.

** NOTE #2: I typically use Paraview for postprocessing my OpenFOAM simulations with the plugin created by Takuya Oshima, but I always have both plugins (the one from Takuya and the one included with OpenFOAM) in running condition so that I can test both..... Since Takuya's plugin works with the file extension ".foam" and the one in OpenFOAM with ".OpenFOAM", both plugins co-exist happily without any conflicts.

Have a wonderful year 2010....


gwierink January 5, 2010 04:03

Excellent!! Thank you, Philippose, I will go and try it soon with F12 64 bit! If there's anything special I'll post it of course. And a happy new year to you too! :)

philippose January 7, 2010 01:44


For the sake of closure on this thread, the latest SVN version of OpenFOAM-1.5-dev: SVN 1570.... has all the source code modifications required to allow for compilation on gcc-4.4.x without having to make any more changes.

For those facing an issue with errors of the nature: "*** missing separator......." refer to the following thread:

Have a nice day!


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