<div dir="ltr"><div dir="ltr">On Wed, Jun 5, 2019 at 9:42 PM Adrian Croucher via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi<br>
<br>
I have some questions about using the DMPlexDistributeField() function. <br>
I have finite volume mesh geometry data stored in two local vectors <br>
created using DMPlexComputeGeometryFVM(), and I need to redistribute <br>
these after calling DMPlexDistribute() to redistribute my mesh. (I need <br>
the geometry data before redistribution, so I can't just wait until <br>
after redistribution to create them.)<br>
<br>
So I figured DMPlexDistributeField() looks like the thing to use for <br>
that, using the SF that comes out of DMPlexDistribute().<br>
<br>
1) Does DMPlexDistributeField() work on local vectors or do they have to <br>
be global ones?<br></blockquote><div><br></div><div>It should be marked in the documentation (will fix). These are only local vectors,</div><div>compatible with that Section.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2) It takes a 'dm' parameter and the documentation says this is "The <br>
DMPlex object", but is that the original DM (before redistribution) or <br>
the redistributed one, or does it not matter? It looks like it only uses <br>
the DM to get the vector type.<br></blockquote><div><br></div><div>You are right. It does not matter.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
3) It looks like you need to manually create the newSection and newVec <br>
output parameters before passing them in to this routine, is that correct?<br></blockquote><div><br></div><div>Yes, that is right.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- Adrian<br>
<br>
-- <br>
Dr Adrian Croucher<br>
Senior Research Fellow<br>
Department of Engineering Science<br>
University of Auckland, New Zealand<br>
email: <a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a><br>
tel: +64 (0)9 923 4611<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_3635301010648898336gmail_signature"><div dir="ltr"><div><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.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>