<div dir="ltr">MPI needs to know about the Fortran type.  That's what this routine does.  It does not create the Fortran type.  Just view this as a special case of MPI_Type_create_struct.<div><br></div><div>We could just use BIND(C) but then I have to add the pair type constructor for C.  I was planning to do that but haven't typed it.<br><div><br></div><div>Jeff</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 10, 2017 at 11:53 AM, Bill Long <span dir="ltr"><<a href="mailto:longb@cray.com" target="_blank">longb@cray.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fortran 90 had derived types, and Fortran 2003 had BIND(C) derived types - essentially C structs.  I don’t see the logic of inventing an archaic “create type” routine when the user could just declared the required type directly.<br>
<br>
Cheers,<br>
Bill<br>
<div><div class="h5"><br>
<br>
> On Nov 10, 2017, at 1:34 PM, Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>> wrote:<br>
><br>
> Given that Fortran 90+ has user-defined types, I don't see any reason why we can't allow these to be used to make MPI_M**LOC reductions more useful in Fortran.  See the following ticket for details.  Please add comments to the GitHub issue.<br>
><br>
> <a href="https://github.com/mpi-forum/mpi-issues/issues/70" rel="noreferrer" target="_blank">https://github.com/mpi-forum/<wbr>mpi-issues/issues/70</a><br>
><br>
> Thanks,<br>
><br>
> Jeff<br>
><br>
> --<br>
> Jeff Hammond<br>
> <a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a><br>
> <a href="http://jeffhammond.github.io/" rel="noreferrer" target="_blank">http://jeffhammond.github.io/</a><br>
</div></div>> ______________________________<wbr>_________________<br>
> mpiwg-fortran mailing list<br>
> <a href="mailto:mpiwg-fortran@lists.mpi-forum.org">mpiwg-fortran@lists.mpi-forum.<wbr>org</a><br>
> <a href="https://lists.mpi-forum.org/mailman/listinfo/mpiwg-fortran" rel="noreferrer" target="_blank">https://lists.mpi-forum.org/<wbr>mailman/listinfo/mpiwg-fortran</a><br>
<br>
Bill Long                                                                       <a href="mailto:longb@cray.com">longb@cray.com</a><br>
Principal Engineer, Fortran Technical Support &   voice:  651-605-9024<br>
Bioinformatics Software Development                      fax:  651-605-9143<br>
Cray Inc./ 2131 Lindau Lane/  Suite 1000/  Bloomington, MN  55425<br>
<br>
<br>
______________________________<wbr>_________________<br>
mpiwg-fortran mailing list<br>
<a href="mailto:mpiwg-fortran@lists.mpi-forum.org">mpiwg-fortran@lists.mpi-forum.<wbr>org</a><br>
<a href="https://lists.mpi-forum.org/mailman/listinfo/mpiwg-fortran" rel="noreferrer" target="_blank">https://lists.mpi-forum.org/<wbr>mailman/listinfo/mpiwg-fortran</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>
</div>