Error in building solver

Hi everyone

I meet the following error when building a solver using DMP in a Linux system.

/home/feiyang/anaconda3/envs/mfix-21.1.4/share/mfix/src/model/dmp_modules/compar_mod.f:18.12:

        USE mpi
            1
Fatal Error: File 'mpi.mod' opened at (1) is not a GNU Fortran module file
gmake[2]: *** [model/CMakeFiles/mfixcore.dir/dmp_modules/compar_mod.f.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [model/CMakeFiles/mfixcore.dir/all] Error 2
gmake: *** [all] Error 2
==============================================================
                      BUILD FAILED
==============================================================

This type of error often occurs when changing compilers. Try typing the command make clean or click the Clean button in the build popup, see if that helps. If not, please try to find the file mpi.mod in the build directory and run file mpi.mod to find out what kind of beast it is.

– Charles

Hi Charles

I solved the above error by upgrading OpenMPI from 3.3.2 to 4.0.7. The solver can be built with DMP now. However, when I click the ‘run’ button, some new errors are reported as follows.

The environment variable for new OpenMPI is added.

image

I solved this error with the help of a system administrator who helped me update the environment variable of openmpi installed on a new computing node. Maybe I do not have a enough permission to update the configuration of nodes.

1 Like