I used -R/path/to/4.5.0/libstdc++.so to fix this library path. But it turns out that -L/path/to/4.5.0/libstdc++.so is also required in addition to this, otherwise the default libstdc++.so is looked up by linker.

This would solve the problem with building CMake. But I'll only be able to check this for myself in about 10h from now

Mmm... I noticed just now that you are running the command in a very bad way. Do not run it like this:

Code:

mpirun -np 8 'foamExec' interFoam -parallel

Run it like this:

Code:

mpirun -np 8 `which foamExec` interFoam -parallel

There is a simpler way of doing this:

Code:

foamJob -s -p interFoam

It (usually) detects the necessary number of cores and the "-p" option launches things in parallel.

If this still doesn't work, then you'll have to do some more tests before trying the solver itself, since this might be a problem with configuring the MPI to work with OpenFOAM and your machine. Here are some old instructions on how to test things:

If this still doesn't work, then you'll have to do some more tests before trying the solver itself, since this might be a problem with configuring the MPI to work with OpenFOAM and your machine. Here are some old instructions on how to test things:
On how to test if MPI is working: post #4 of "openfoam 1.6 on debian etch", and/or post #19 of "OpenFOAM updates" - Note: As of OpenFOAM 2.0.0, the application "parallelTest" is now called "Test-parallel".

I have done the testing as described by you in above posts. The application did got compiled. But foamJob -p -s Test-parallel throws error.The output is in file test-parallel.

You've got a big problem there, mainly because you're not taking into account several important details:

You should first do the tests on the machine where you built OpenFOAM. This will confirm to you if things are working or not.

You are trying to launch OpenFOAM applications on a cluster where OpenFOAM is not properly installed! When launching OpenFOAM applications, it expects that all machines have the same OpenFOAM installation path.

The case folder must be accessible on all machines, or at least properly indicated on "system/decomposeParDict". This includes the need for a writable processor folder from each machine!

You've got a big problem there, mainly because you're not taking into account several important details:

You should first do the tests on the machine where you built OpenFOAM. This will confirm to you if things are working or not.

You are trying to launch OpenFOAM applications on a cluster where OpenFOAM is not properly installed! When launching OpenFOAM applications, it expects that all machines have the same OpenFOAM installation path.

The case folder must be accessible on all machines, or at least properly indicated on "system/decomposeParDict". This includes the need for a writable processor folder from each machine!

1.> I did the test on the machine on which OpenFOAM is built.
In .bashrc file, I have this line:
alias of201='source /Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_NCOMPPROCS=8'

Then I went to damBreak tutorial and decompose the case into 4 domains. Then I ran foamJob -p -s Test-parallel (parallel.txt) and also foamJob -p -s interFoam (error.txt).

2.> I ran foamInstallationTest. It does not show any error. (foamInst.txt)

3.>Before building openFOAM 2.0.1, I had openFOAM 1.6 installed on the cluster. In OpenFOAM 1.6 (openmpi-1.3.3 included in thirdparty-1.6 package), parallel runs were working smoothly without any error on master as well as on nodes.

So what can be the reason for parallel runs not working in OpenFoam-2.0.1?

I did managed to get the OpenFOAM 2.0.1 and 2.1.0 running in parallel mode (with OpenMPI 1.4.1) on a single node of the cluster using foamJob as well as mpirun command.

But I am not been able to float the runs on multiple nodes.

log file:

/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.0.1/bin/foamExec: line 145: exec: interFoam: not found

Can this be because OpenFOAM environment is not active on other nodes? I usually log onto the node, activate the OF environment, then float the run.