I don't know about graceful, but I don't think there is a more
efficient approach than what you have chosen.

On Tue, Aug 2, 2022 at 4:00 PM Nicholas Arnold-Medabalimi
<[email protected]> wrote:
>
> Hi
>
> Currently, in my distributed DMPlex object, every so often, I want to look at 
> total cell counts. To do this in my current implementation, I get the cell 
> stratum from the DMplex and search through the PetscSF to remove any 
> overlapped (not owned) cells and then reduce over all the ranks to get the 
> total cell count. Is there a more graceful way of doing this already built 
> into DM?
>
> Sincerely
> Nicholas
>
> --
> Nicholas Arnold-Medabalimi
>
> Ph.D. Candidate
> Computational Aeroscience Lab
> University of Michigan

Reply via email to