LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Davide Cesari (dcesari_at_[hidden])
Date: 2006-10-11 08:30:10


Tim Prins ha scritto:
> Hi Angela,
>
> Unfortunately LAM does not have a Fortran 90 module (see http://
> www.lam-mpi.org/MailArchives/lam/2005/01/9708.php). It does however
> have Fortran77 support which can be called from either F77 or F90
> code. To use these bindings you must use '#include <mpif.h>' instead
> of 'use mpi' and compile your code with 'mpif77'.
>
> Hope this helps. If this does not work please send the output of
> 'laminfo' and 'mpif77 --showme'
>
> Tim
>

Hi,
a quick alternative, in order not to change the fortran code, may be to
create a dummy mpi.f90 module like this:

MODULE mpi
INCLUDE 'mpif.h'
END MODULE mpi

compile it (mpif77 -c mpi.f90) and provide the resulting mpi.mod (and
maybe also the mpi.o) to your fortran program, by putting the mpi.mod
either in the same directory where your program resides or in the
directory where LAM's mpif.h resides, and adding mpi.o to the linking
command line (but this step may be unnecessary).
        Good luck, Davide