CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04 (

dasMopo February 5, 2013 10:37

OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04
Hi there.

We're trying to get OF running using on a Ubuntu 12.04 (x86) system.
Following the installation instructions from openfoamwiki gave us a running installation of OF, but it gives errors, when we try to run it in parallel operation:


Sorry!  You were supposed to get help about:
But I couldn't open the help file:
    /home/*****/OpenFOAM/ThirdParty-1.7.1/openmpi-1.4.1/share/openmpi/help-mca-base.txt: No such file or directory.  Sorry!
[eurex1:23625] *** Process received signal ***
[eurex1:23625] Signal: Segmentation fault (11)
[eurex1:23625] Signal code: Address not mapped (1)
[eurex1:23625] Failing at address: 0x28
[eurex1:23625] [ 0] /lib/x86_64-linux-gnu/ [0x7f3dbe327cb0]
[eurex1:23625] [ 1] /usr/lib/ [0x7f3dbe557518]
[eurex1:23625] [ 2] /usr/lib/ [0x7f3dbe56990e]
[eurex1:23625] [ 3] /usr/lib/ [0x7f3dbe5480ee]
[eurex1:23625] [ 4] /usr/lib/ [0x7f3dbe547a59]
[eurex1:23625] [ 5] /usr/lib/ [0x7f3dbe799a0d]
[eurex1:23625] [ 6] mpirun() [0x402fe5]
[eurex1:23625] [ 7] mpirun() [0x402b34]
[eurex1:23625] [ 8] /lib/x86_64-linux-gnu/ [0x7f3dbdf7a76d]
[eurex1:23625] [ 9] mpirun() [0x402a59]
[eurex1:23625] *** End of error message ***

The path mentioned in the error message (/home/*****/OpenFOAM/ThirdParty-1.7.1/openmpi-1.4.1/share/openmpi/help-mca-base.txt ) doesn't exist.

(I also noticed the compiler complaining about missing mpi.h in Allwmake of OF 1.7.1, which is somewhat weird, as we'd manage to get a recent OF 2.1.1 running parallel without any problems.)

Can anyone help ?

[Isn't there a recent howto out there, describing how to build OF 1.7.1 with mpi support ? Most of the docs I read were unfortunately severely out of date :( ]

wyldckat February 5, 2013 12:16

Greetings dasMopo and welcome to the forum!

I believe you are talking about this page:

Since you have more than one OpenFOAM installed, how are you keeping the two installations separated, shell-wise?
If you don't know what I mean, see:

Also, try running Allwmake in OpenFOAM-1.7.1 once again, and check what errors is gives you.

Best regards,

dasMopo February 5, 2013 12:52

Wyldckat, thanks for your reply.

Actually - after some additional tries and a fresh install - I managed to get it to work. The problem was that in the howto there was the include of systemopenmpi, which wouldn't work.


Changing this to openmpi [which is supplied in the ThirdParty package, as far as i understood] solved the problem - parallel processing is now available and running flawlessly.


source $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=OPENMPI
Regarding your question - we managed to run different versions of OF by individually sourcing the environments using a script instead of placing the source command in the user's home .bashrc

This works quite well.

wyldckat February 5, 2013 17:51

Hi dasMopo,

Many thanks for the feedback! I'll update the wiki page accordingly and give this page as a reference for future support!

I've been writing on these wiki pages to use the Ubuntu's version of Open-MPI, because (at least in theory) it should be the most stable and tested version... but then again, I didn't fully test the resulting build. So feedback is always welcome!

Best regards,

dasMopo February 11, 2013 08:12

Well, you're very welcome. :)

Another issue I encountered in using the 1.7.1 Ubuntu installation guide: the getQt script (in section 6 - building paraView) still points to the Trolltech servers, which are no longer available.

Correct link should point to the project's new home at (Nokia).

wyldckat February 17, 2013 11:14

Hi dasMopo,

Once again, many thanks for the feedback! I've implemented the changes you suggested.

Best regards,

All times are GMT -4. The time now is 22:23.