CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   How to install the OpenFoam in the cluster. Please help me! (

flying November 24, 2009 14:19

How to install the OpenFoam in the cluster. Please help me!

Hey foamers:

I hope all of you are fine. But I am really depressed by setting up openfoam in the cluster.

There is gcc4.4.1 and openmpi 1.3.3 in the cluster.

I should use all of the complier in the cluster. I am not allowed to use any complier in the thirdparty when the code is run in multi-nodes.

So, I need to compile the openfoam with the compile in cluster.

I have to set up in my home directory by myself.

First question, Are gcc 4.4.1 and openmpi 1.3.3 enough for compile openfoam 1.5?
Second question, if it is enough , how do I do it?

I have changed the complier option and mpi setting up option. As follows

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WM_COMPILER_INST=System (changed)

case "$WM_MPLIB" in
# export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version (orginal)
# export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS (orginal

export MPI_ARCH_PATH=/opt/openmpi/1.3.3/gcc-4.4.1 (changed)

It could compile. But there is some error information as follows:

Note: ignore spurious warnings about missing mpicxx.h headers
+ wmake libso mpi
Making dependency list for source file OPwrite.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file OPwrite.C
could not open file ompi/mpi/cxx/constants.h for source file OPwrite.C
could not open file ompi/mpi/cxx/functions.h for source file OPwrite.C
could not open file ompi/mpi/cxx/datatype.h for source file OPwrite.C
could not open file ompi/mpi/cxx/exception.h for source file Opwrite.C

Who would like to give me some idea about it?

Thanks and best wishes!

francescomarra November 25, 2009 05:54

Dear flying,

it is difficult for me to help you. I was able to install OpenFOAM 1.6.x on my cluster based on the Rocks distribution. I chosen to adopt the compiler and mpi distributed in OpenFOAM/Third_party.
I think you should mention the OS which is running on your cluster.



flying November 25, 2009 06:08

There are so many thanks for your reply. At least I know how other person has done it.
OS: Linux version

By the way, what is Rocks distribution?

flying November 25, 2009 06:30

OS should be Debian 4.0 "etch"

flying November 25, 2009 06:50

There are other questions. Please give me an answer.

How did you set up the openfoam?
Did you install them in every node or only in one node?
Did you only set up in the root account or in th user account?

markusrehm November 27, 2009 03:51

Hello Flying,

it is not easy to give general answers because it depends very much on you environment. For example, how are the nodes connected to the master and how is the storage attached?

So you should first install OpenFoam as a user in the home-space. Once this runs well you can make it available for all users in a system directory.

Regards, Markus.

flying November 27, 2009 04:00

Hello Markus:

Thanks so much for your reply. I will keep to try it.

Best wishes!

All times are GMT -4. The time now is 10:56.