LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Nick Nevin (njnevin_at_[hidden])
Date: 2003-09-18 07:18:40


On Thu, Sep 18, 2003 at 06:40:29PM +0800, poknam wrote:
> This is a very simple program downloaded from web,
>
> But there's runtime error in MPI_BUFFER_DETACH,
>
> I've tried other fortran programs using MPI_BUFFER_DETACH, still a similar
> error occurs.
>
> But the error ONLY occur in Fortran, C has no problem.
>
> Also, I've tried comment the line with MPI_BUFFER_DETACH, then it runs
> smoothly
>
> Below is the code:
>
>
[snip]
>
> call MPI_BUFFER_DETACH(buffer,528,ierr)

You need to pass a variable not a constant as the second argument.
For example

        call MPI_BUFFER_DETACH(buffer,k,ierr)

-nick