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
|