On Tue, Dec 7, 2010 at 2:22 PM, Jed Brown <jed at 59a2.org> wrote: > On Tue, Dec 7, 2010 at 21:20, Barry Smith <bsmith at mcs.anl.gov> wrote: > >> How with the DMDA could you have a no copy and still allow nice 2 d and 3d >> array access of ghost points? It seems to me with DMDA you would always need >> a copy (or some crazy overloading of [])? >> > > Indeed, you would need overloading which I'm not proposing. > > >> Or do you mean in the DMDA case you get a copy but in the unstructured >> grid case you get no copy, but the basic paradigm of "local form" is always >> used? >> > > Yeah, I just want a uniform API. > > >> In other words all parallel Vecs could have related local forms and the >> model is "give me local form Vec", scatter to/from local form vec etc? >> > > Yes. >
ALL Vecs or all Vecs obtained from a DMDA? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20101207/752b409b/attachment.html>
