On Sun, Jul 1, 2012 at 7:10 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> > On Jul 1, 2012, at 8:55 PM, Jed Brown wrote: > > > No, but you can use Vec.createGhost() > > > > On Sun, Jul 1, 2012 at 5:22 PM, Din Zhao <sean.null at gmail.com> wrote: > > And in general, does any function in petsc have a counterpart in > petsc4py? > > > > 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. > > 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. > Here is Vec.setMPIGhost() http://code.google.com/p/petsc4py/source/detail?r=25b193708e130337ead16adf6c0a7851b1e90f0b 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? http://code.google.com/p/petsc4py/source/detail?r=1f45f9ab5d8df8695bc3e0c6c662658911f519fb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120702/f4a4e0d2/attachment.html>
