<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Oct 15, 2017 at 9:13 PM, Adrian Croucher <span dir="ltr"><<a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<div class="m_2469541819570145257moz-cite-prefix">On 16/10/17 13:12, Matthew Knepley
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><br>
<div>Okay, I was wrong about what gets produced. Barry
rewrote the Fortran bindings last, and I did not
understand how everything</div>
<div>was put together. You will need to make some
modifications. Here is the idea: we build an F90 module
for each class, and your</div>
<div>stuff will go in the Vec module here:</div>
<div><br>
</div>
<div> <a href="https://bitbucket.org/petsc/petsc/src/c99b676fdc4d0978b5621d138ceee2e1b7869aa6/src/vec/f90-mod/petscvecmod.F?at=master&fileviewer=file-view-default" target="_blank">https://bitbucket.org/petsc/<wbr>petsc/src/<wbr>c99b676fdc4d0978b5621d138ceee2<wbr>e1b7869aa6/src/vec/f90-mod/<wbr>petscvecmod.F?at=master&<wbr>fileviewer=file-view-default</a></div>
<div><br>
</div>
<div>You will need to make a module in this file petscsf. It
should look about like the petscao module. That means
making</div>
<div>a petscsf.h90 with your new interfaces, like this one</div>
<div><br>
</div>
<div> <a href="https://bitbucket.org/petsc/petsc/src/c99b676fdc4d0978b5621d138ceee2e1b7869aa6/src/vec/f90-mod/petscis.h90?at=master&fileviewer=file-view-default" target="_blank">https://bitbucket.org/petsc/<wbr>petsc/src/<wbr>c99b676fdc4d0978b5621d138ceee2<wbr>e1b7869aa6/src/vec/f90-mod/<wbr>petscis.h90?at=master&<wbr>fileviewer=file-view-default</a></div>
<div><br>
</div>
<div>and also a generic petscsf.h, like this one</div>
<div><br>
</div>
<div> <a href="https://bitbucket.org/petsc/petsc/src/c99b676fdc4d0978b5621d138ceee2e1b7869aa6/src/vec/f90-mod/petscao.h?at=master&fileviewer=file-view-default" target="_blank">https://bitbucket.org/petsc/<wbr>petsc/src/<wbr>c99b676fdc4d0978b5621d138ceee2<wbr>e1b7869aa6/src/vec/f90-mod/<wbr>petscao.h?at=master&<wbr>fileviewer=file-view-default</a></div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<br></span>
This last file petscao.h is including a "petsc/finclude/petscao.h",
which contains various definitions including the definition of AO.
Do I need to make some sort of similar "petsc/finclude/petscsf.h"?<br>
<br>
It looks like PetscSF is already defined inside
petsc/finclude/petscis.h. It's not clear to me which bits of the SF
interface need to be in their own files and which are lumped in with
the IS interface.</div></blockquote><div><br></div><div>If SF is already in the IS part then we do not technically need to move it out. It just seems to me that it would be cleaner to do so.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><span class=""><br>
- Adrian<br>
<pre class="m_2469541819570145257moz-signature" cols="72">--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: <a class="m_2469541819570145257moz-txt-link-abbreviated" href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a>
tel: <a href="tel:+64%209-923%204611" value="+6499234611" target="_blank">+64 (0)9 923 4611</a>
</pre>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>