Great. Using grep I couldn't find how this is handled anywhere in the
source directory. But it seems to me that the Fortran layer is now way more
complicated than I initially thought.

  George.


On Fri, Feb 20, 2015 at 8:27 AM, Jeff Squyres (jsquyres) <jsquy...@cisco.com
> wrote:

> Gilles is correct.  The same kind of increment happens in all the
> test/wait Fortran code that returns indexes.
>
> "Mr. Fortran"?  Ouch.  :-)
>
>
> > On Feb 20, 2015, at 6:09 AM, Gilles Gouaillardet <
> gilles.gouaillar...@iferc.org> wrote:
> >
> > 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
> >
> > _______________________________________________
> > 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/17005.php
>
>
> --
> Jeff Squyres
> jsquy...@cisco.com
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
> _______________________________________________
> 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/17006.php
>

Reply via email to