CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   How to install the OpenFoam in the cluster. Please help me! (https://www.cfd-online.com/Forums/openfoam-installation/70439-how-install-openfoam-cluster-please-help-me.html)

flying November 24, 2009 13: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 = OpenFOAM | System
#
WM_COMPILER_INST=OpenFOAM (Orginal)
WM_COMPILER_INST=System (changed)

case "$WM_MPLIB" in
OPENMPI)
mpi_version=openmpi-1.2.6
# 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 04: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.

Regards,

Franco

flying November 25, 2009 05:08

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

By the way, what is Rocks distribution?

flying November 25, 2009 05:30

OS should be Debian 4.0 "etch"

flying November 25, 2009 05: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 02: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 03: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 12:48.