<div class="gmail_quote">On Sun, Jul 1, 2012 at 7:10 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Jul 1, 2012, at 8:55 PM, Jed Brown wrote:<br>
<br>
> No, but you can use Vec.createGhost()<br>
><br>
> On Sun, Jul 1, 2012 at 5:22 PM, Din Zhao <<a href="mailto:sean.null@gmail.com">sean.null@gmail.com</a>> wrote:<br>
> And in general, does any function in petsc have a counterpart in petsc4py?<br>
><br>
> Most do, but the projects are maintained somewhat separately so not every one make it into petsc4py. Also, sometimes a more "pythonic" interface is adopted by petsc4py, so the calls don't line up exactly.<br>

<br>
</div></div>   We do intend to have the same functionality in both, so if something is a bit different on the pythonic side we still want it to have the same functionality.<br></blockquote><div><br></div><div>Here is Vec.setMPIGhost()</div>
<div><br></div><div><a href="http://code.google.com/p/petsc4py/source/detail?r=25b193708e130337ead16adf6c0a7851b1e90f0b">http://code.google.com/p/petsc4py/source/detail?r=25b193708e130337ead16adf6c0a7851b1e90f0b</a></div>
<div><br></div><div>This patch includes a test and a change to handling of the local form. Lisandro, is it okay to depend on the 'with' statement here? Since the old code never called VecGhostRestoreLocalForm(), I consider it to have been non-compliant. Would you prefer to handle this in a different way?</div>
<div><br></div><div><a href="http://code.google.com/p/petsc4py/source/detail?r=1f45f9ab5d8df8695bc3e0c6c662658911f519fb">http://code.google.com/p/petsc4py/source/detail?r=1f45f9ab5d8df8695bc3e0c6c662658911f519fb</a></div>
</div>