usgs / landslides-trigrs

Other
37 stars 20 forks source link

"Can't open module file "mpi.mod" for reading: No such file or directory #4

Closed geoeki closed 7 years ago

geoeki commented 7 years ago

Compiling a working version of tpx and trg wasn't a problem, for prg however something seems to be missing:

user@home /cygdrive/D/parallelMPI/trigrs_mpi
$ make prg
make -f prg.make
make[1]: Entering „/cygdrive/D/parallelMPI/trigrs_mpi“
mpif90 -w -O3  -c pstpi_p.f95
pstpi_p.f95:9:6:

   use mpi
      1
**Fatal Error:** Can't open module file »**mpi.mod**« for reading at (1): No such file or directory
Compilation terminated.
make[1]: *** [prg.make:35: pstpi_p.o] Error 1
make[1]: Quitting „/cygdrive/D/parallelMPI/trigrs_mpi“
make: *** [Makefile:24: prg] Error 2

I use make 4.2.1-1 and openmpi 1.10.6-1 on a 2.7.0 64-bit Cygwin installation (Windows 10).

ghost commented 7 years ago

This "missing" file reported in this error is not a file missing from the trigrs project. The file "mpi.mod" reported as missing appears to be part of the openmpi 1.10.6-1 distribution and is either missing or mislocated on the user's system.

senyouan commented 6 years ago

hi Do you solve this problem? Can't open module file ‘mpi.mod’ for reading at (1): No such file or directory Thanks

ghost commented 6 years ago

This is not a problem with the TRIGRS source code or makefile.

Users must make sure that openmpi is correctly installed and configured on their system. After confirming that openmpi is correctly installed and configures, make sure that the shell's PATH environment variable includes the path to your openmpi installation before compiling.