[petsc-users] combining two PetscSFs

Jed Brown jed at jedbrown.org
Wed Mar 18 12:35:02 CDT 2015


Ataollah Mesgarnejad <amesga1 at tigers.lsu.edu> writes:

> Dear all,
>
> I was wondering if there is a way to combine two PetscSFs into one SF?
> e.g., I'm doing two back to back  PetscSFBCasts:
>
>                   Vec1--(SF1)-->Vec2--(SF2)-->Vec3
>
> is there a way to combine SF3=SF1+SF2 so I can do one PetscSFBcast:
>
>                     Vec1--(SF3)-->Vec3

Let's suppose your roots are on the left.  Get the SF1 graph
(PetscSFGetGraph) and PetscSFBcast it over SF2.  Now you have the Vec1
roots in the space of Vec3, so you can create SF3.
-------------- 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/20150318/fbcb3ed6/attachment.pgp>


More information about the petsc-users mailing list