CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation Procedure of OF220 on Ubuntu 10.04LTS (https://www.cfd-online.com/Forums/openfoam-installation/114311-installation-procedure-of220-ubuntu-10-04lts.html)

DineshramBalaji June 27, 2013 14:57

Hi Bruno,

these are the results for the commands you gave me to check.

SYSTEMOPENMPI

/usr/lib/openmpi


/usr/bin/mpicc

/usr/bin/mpirun

seems like the file is actually located in bin folder.... just that the bashrc couldn't locate it

wyldckat June 27, 2013 17:09

Hi Dinesh,

I didn't have a clear enough head in the past few days, but now I've clearly seen the possible problem. Try running this command:
Code:

echo $OPAL_PREFIX
If it shows you this path:
Code:

/home/bluesim/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc/openmpi-1.6.3/
then it's because you are initializing the OpenFOAM shell environment twice, once with "WM_MPLIB=OPENMPI" and another with "WM_MPLIB=SYSTEMOPENMPI".

If this is the case, then edit the "~/.bashrc" with a text editor and remove the first line that refers to OpenFOAM, as I indicated in the post #18:
Quote:

Originally Posted by wyldckat (Post 435951)
Code:

source $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc
source $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc WM_NCOMPPROCS=4  WM_MPLIB=SYSTEMOPENMPI foamCompiler=ThirdParty  WM_COMPILER=Gcc46


If you do not know what file I'm referring to, then run this command to see its path:
Code:

find ~/.bashrc
Best regards,
Bruno

DineshramBalaji June 27, 2013 17:25

Hi Bruno,

Yeah. there were two references and I commented out the first one. Thanks for the help again.

ngj July 13, 2013 04:46

Good morning,

I have tried following the above guide for compiling OpenFoam-2.2.1. It has been successful. For people who already have the 2.2.0 or 2.2.x installed on their machine, the following modification could save a bit of time:

Instead of downloading and compiling all the ThirdParty software, merely do the following in your OpenFOAM-directory for a 2.2.0 version (modify accordingly, if you have 2.2.x.)

Code:

ln -s ThirdParty-2.2.0 ThirdParty-2.2.1
This create a symbolic link to the already working ThirdParty compilation, and the compilation of OpenFoam-2.2.1 works smoothly.

Kind regards

Niels


All times are GMT -4. The time now is 21:57.