Ataollah Mesgarnejad <[email protected]> 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.
signature.asc
Description: PGP signature
