HEUREEKA!
The solution that works is to keep using MPI_WORK_COMM in the MPI_ subroutine
calls, include mpif.h in the subroutine, but don't try to pass it as an
argument or save it in an other integer (as I did under mpich).
Thanks, Jeff, for your help and patience with my stumblings.
M
or multiple declaration of name. [MPI_COMM_WORLD]
parameter (MPI_COMM_WORLD=0)
-^
compilation aborted for mpi0.f (code 1)
Mihaly Mezei
Department of Structural and Chemical Biology, Mount Sinai School of Medicine
Voice: (212) 659-5475 Fax: (212) 849-245
Hi,
The previous example I posted shows that using a different integer does not
work, Attached is a case where I tired to pass the MPI_COMM_WORLD to the
subroutine as one of it arguments, resulting in an invalid datatype error.
Mihaly Mezei
Department of Structural and Chemical Biology, Mount
Hi,
attached is mpi0.f (23 lines) and the screen dump of the compilation with the
error message.
Thanks for the lightening-speed reaction!
Best,
Mihaly Mezei
Department of Structural and Chemical Biology, Mount Sinai School of Medicine
Voice: (212) 659-5475 Fax: (212) 849-2456
WWW (MSSM
Greetings, and apologies:
In mpich, I could assign MPI_WORLD_COMM (i.e., mpich did not accept
MPI_WORLD_COMM in a common block either) to an integer and that was what I put
into the common block,. Openmpi does not accept that new integer as a
communicator.
Mihaly Mezei
Department of
*** on communicator MPI_COMM_WORLD
*** MPI_ERR_TYPE: invalid datatype
What is the correct way to pass the communiator to a subroutine in
Fortra90/openmpi?
Thanks,
regards,
Mihaly Mezei
Department of Structural and Chemical Biology, Mount Sinai School of Medicine
Voice: (212) 659-5475 Fax