Re: [petsc-users] Interpreting Redistribution SF

2023-01-20 Thread Matthew Knepley
On Thu, Jan 19, 2023 at 10:12 PM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Ok thanks for the clarification. In theory, if before the Reduction back > to the original distribution, if I call DMGlobaltoLocal then even with > MPI_REPLACE all the leafs corresponding to the original roo

Re: [petsc-users] Interpreting Redistribution SF

2023-01-19 Thread Nicholas Arnold-Medabalimi
Ok thanks for the clarification. In theory, if before the Reduction back to the original distribution, if I call DMGlobaltoLocal then even with MPI_REPLACE all the leafs corresponding to the original root should have the same value so I won't have an ambiguity, correct? On Thu, Jan 19, 2023 at 9

Re: [petsc-users] Interpreting Redistribution SF

2023-01-19 Thread Matthew Knepley
On Thu, Jan 19, 2023 at 9:13 PM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Hi Matt > > Yep, that makes sense and is consistent. > > My question is a little more specific. So let's say I take an initial mesh > and distribute it and get the distribution SF with an overlap of one. > Co

Re: [petsc-users] Interpreting Redistribution SF

2023-01-19 Thread Nicholas Arnold-Medabalimi
Hi Matt Yep, that makes sense and is consistent. My question is a little more specific. So let's say I take an initial mesh and distribute it and get the distribution SF with an overlap of one. Consider a cell that is a root on process 0 and a leaf on process 1 after the distribution. Will the d

Re: [petsc-users] Interpreting Redistribution SF

2023-01-19 Thread Matthew Knepley
On Thu, Jan 19, 2023 at 11:58 AM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Hi Petsc Users > > I'm working with a distribution start forest generated by > DMPlexDistribute and PetscSFBcast and Reduce to move data between the > initial distribution and the distribution generated by D

[petsc-users] Interpreting Redistribution SF

2023-01-19 Thread Nicholas Arnold-Medabalimi
Hi Petsc Users I'm working with a distribution start forest generated by DMPlexDistribute and PetscSFBcast and Reduce to move data between the initial distribution and the distribution generated by DMPlex Distribute. I'm trying to debug some values that aren't being copied properly and wanted to