[petsc-dev] Reduction in KSPGetVecs via DMCreateGlobalVector
Jed Brown
jed at jedbrown.org
Wed Mar 26 08:05:59 CDT 2014
Barry Smith <bsmith at mcs.anl.gov> writes:
> At one point DMCreateGlobalVector_DA() did a duplicate of a “base” global vector, then in theory it could share the layout but that is all different now.
>
> Note that the basic VecDuplicate_MPI() does share the previous layout but then there is a VecDuplicate_MPI_DA() which does not share the layout.
Should DM just reference the PetscLayout the first time it creates a
Vec, then use it for all subsequent Vecs (VecSetLayout instead of
VecSetSizes)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140326/ded19133/attachment.sig>
More information about the petsc-dev
mailing list