George,

this is correctly handled in ompi_testany_f :

        /* Increment index by one for fortran conventions.  Note that
           all Fortran compilers have FALSE==0; we just need to check
           for any nonzero value (because TRUE is not always 1) */

Cheers,

Gilles

On 2015/02/20 1:15, George Bosilca wrote:
> While looking the MPI_Testany issue, I came across a very unsettling
> sentence in the MPI standard (3.0 page 58 line 36).
>
>> The array is indexed from zero in C, and from one in Fortran.
> This sentence seems to indicate that the index returned by the TestAny and
> TestSome (as well as the corresponding Wait functions) should be indexed
> starting from 1 in Fortran, but from 0 in C. Our C code returns all indexes
> starting from 0 (C), but I failed to find where we handle this case in
> Fortran? Or maybe I am interpreting too much the MPI standard?
>
>   George.
>
>
>
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post: 
> http://www.open-mpi.org/community/lists/devel/2015/02/16994.php

Reply via email to