include brings in a file
use brings in a module .. kind of like an object file.
> -----Original Message-----
> From: users-bounces_at_[hidden] [mailto:users-bounces_at_[hidden]]
> Behalf Of Scott Beardsley
> Sent: Wednesday, July 30, 2008 1:16 PM
> To: Open MPI Users
> Subject: Re: [OMPI users] Missing F90 modules
> Brock Palen wrote:
> > On all MPI's I have always used there was only MPI
> > use mpi;
> Please excuse my admittedly gross ignorance of all things Fortran but
> why does "include 'mpif.h'" work but "use mpi" does not? When I try
> "use mpi" method I get errors like:
> $ mpif90 -c cart.f
> call mpi_cart_get( igcomm,2,ivdimx,lvperx, mygrid,
> pathf95-389 pathf90: ERROR CART, File = cart.f, Line = 34, Column = 12
> No specific match can be found for the generic subprogram call
> $ mpif90 -c cartfoo.f
> $ diff cart.f cartfoo.f
> < C include 'mpif.h'
> < use mpi;
> > include 'mpif.h'
> > C use mpi;
> From the googling I've done it seems like "use mpi" is preferred.
> I've made sure that my $LD_LIBRARY_PATH has the directory that MPI.mod
> is in.
>  http://www.mpi-forum.org/docs/mpi-20-html/node243.htm
> users mailing list