From: Marc Montagnac <Marc.Montagnac@asci.fr>
Newsgroups: comp.parallel.mpi
Subject: Re: MPI & Fortran77
Date: Fri, 27 Nov 1998 09:08:08 +0100
Organization: Applications Scientifiques pour le Calcul Intensif
Message-Id: <365E5DE8.45865D78@asci.fr>
References: <365D9A42.47E8DBA7@vegaserv.univ-fcomte.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Julien Balas wrote:

> Hello
>
> we are juste beginner in fortran but familiar with MPI and C
>
> we would like to know if it was true that MPI_function can only be
> called from Main
> program and not from SubRoutines
>

Fortunately, you can put MPI_function in subroutines !!!

> We have problems with the re-declaration of "integer
> status(MPI_STATUS_SIZE)"
> the SGI fortran Compiler answers "
>  line 74: error(2194): "MPI_STATUS_SIZE", used as array bound, is
>           not a dummy argument or in COMMON
>         integer status(MPI_STATUS_SIZE)"
>

It depends on where you re-declare your array. The compiler did notfind
MPI_STATUS_SIZE from the mpif.h (or whatever) file (in your
subroutine or main??)

> Thank you
> --
> Julien Balas :: balas@vegaserv.univ-fcomte.fr




--
Marc

Tel : +33 1 69 35 84 03
Home Page : http://www.asci.fr/Marc.Montagnac

