CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   mpif90 breaks after compiling OpenFOAM (

startingWithCFD July 26, 2013 05:33

mpif90 breaks after compiling OpenFOAM
Since I use the default settings for compiling OpenFOAM from source, I am unable to use mpif90. In particular, I get the following message when I try to compile any parallel fortran code:


Unfortunately, this installation of Open MPI was not compiled with
Fortran 90 support.  As such, the mpif90 compiler is non-functional.

Could someone tell me the switch I should activate to make it work again?
Also, I assume I need to recompile... right?

startingWithCFD September 30, 2013 03:11

Bump. Could anyone please help me in that?

eysteinn October 1, 2013 08:06

Here is a user having same/similar problem:

ompi_info should show you if the version you are running was compiled with fortran support.
According to the link ompi should compile with fortran support if it can find the fortran compiler.

If your system installed openmpi worked and you want to use the same version for
both your fortran code and openfoam you can change line 84 in
OpenFOAM-2.2/etc/bashrc from OPENMPI to SYSTEMOPENMPI,
source the bashrc and recompile. Then just hope that openfoam compiles :)

Hope this solves your problem but should at least lead you in the right direction.


All times are GMT -4. The time now is 20:26.