[petsc-users] GlobalToLocal between DM and SubDM

Josh L ysjosh.lo at gmail.com
Tue Apr 30 12:18:49 CDT 2019


Hi,

I have a DM that that has 2 sections:

section_0 has 2 dofs: u, v
section_1 has 1 dofs: p

and a SubDM created by DMCreateSubDM. SubDM only has section_1.

There are a global vector created with DM, and a local vector created with
SubDM

Can I do GlobalToLocal between this 2 vectors? If yes, which DM should I
use when calling GlobalToLocal.

Basically, I want
a global vec: [u1, v1, p1 u2, v2, p2, u3, v3, p3......]
to
local vec: [all dof p that belongs to this processor]


Thanks,
Yu-Sheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190430/1cbc5e63/attachment.html>


More information about the petsc-users mailing list