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.
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.
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.