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:
Also, I assume I need to recompile... right?
Bump. Could anyone please help me in that?
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 16:01.|