[petsc-users] interpolate staggered grid values in parallel

Jed Brown jed at jedbrown.org
Mon Dec 1 15:00:28 CST 2014


Bishesh Khanal <bisheshkh at gmail.com> writes:
> Ok, I now see that KSPGetSolution(ksp, &x) gives a GLOBAL vector in x and
> not a local vector; hence the runtime memory error above since I can't
> access ghost values in indices such as [i-1] wth the global vec.
> Was there any reason not to make this information explicit in the docs to
> prevent the confusion I had ? Or should it have been obvious to me and that
> I'm missing something here ?

Adding to Dave's comment, KSP has no concept of a "local vector".  That
is a DM concept.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141201/125dfd1f/attachment.pgp>


More information about the petsc-users mailing list