Hi,
I have installed all the relevant OpenMPI packages to develop programs in
Fortran but found a problem when compiling programs in Fortran 90 with the
clause

use mpi

as mpifort then complains:

$ mpifort hello_usempi.f90
hello_usempi.f90:13:9:

   13 |     use mpi
      |         1
Fatal Error: Cannot open module file ‘mpi.mod’ for reading at (1): No such
file or directory

The workaround was to use

mpifort -J/usr/lib

as /usr/lib is the directory where mpi.mod resides after the installation
of the OpenMPI packages.

Has anyone found this before? Shouldn't the flag -J/usr/lib be issued as
part of the string issued by mpifort?

Regards
Rudnei
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to