[petsc-users] DMLabel Synchronize

Nicholas Arnold-Medabalimi narnoldm at umich.edu
Wed Aug 31 20:29:45 CDT 2022


Hi

Thanks, this looks like what I need, but I don't seem to have it in my
release (3.17.4 from
https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.17.4.tar.gz). I
see it in the current repository, though. Is the 3.17.4 tarball just
missing it, or will it be added in the next release?

Thanks
Nicholas

On Wed, Aug 31, 2022 at 7:45 AM Matthew Knepley <knepley at gmail.com> wrote:

> On Tue, Aug 30, 2022 at 6:37 PM Nicholas Arnold-Medabalimi <
> narnoldm at umich.edu> wrote:
>
>> Hi
>>
>> Thanks for all the help. I'm looking to tag several cells based on
>> metrics occurring at run time. In addition to the metric-defined cells I
>> also want to label the surrounding cells. This is no problem as I can
>> traverse the DMPlex chart to get the neighboring cells. The issue only
>> arises if an identified cell is on a partition boundary. this leads to the
>> neighbor cell in the overlap halo being tagged. However, the root cell on
>> the adjacent partition is not tagged. Is there a built-in way to
>> synchronize the labels from the leafs to the roots?
>>
>> Right now, I iterate through the root and leaf cells of each processor,
>> but it is somewhat wasteful as I don't see a way for the root cell
>> partition to know if a corresponding leaf cell label value without
>> communicating it first.
>>
>
> What I think you want is this:
>
>   https://petsc.org/main/docs/manualpages/DMLabel/DMLabelPropagateBegin/
>
> I use this to do the same kind of labeling I think. It is setup to allow
> multiple rounds,
> so that you can use the communicated labeling to continue on the new rank.
>
> Will this work?
>
>   Thanks,
>
>      Matt
>
>
>> Thanks
>> Nicholas
>>
>> --
>> Nicholas Arnold-Medabalimi
>>
>> Ph.D. Candidate
>> Computational Aeroscience Lab
>> University of Michigan
>>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
> https://www.cse.buffalo.edu/~knepley/
> <http://www.cse.buffalo.edu/~knepley/>
>


-- 
Nicholas Arnold-Medabalimi

Ph.D. Candidate
Computational Aeroscience Lab
University of Michigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220831/eb712007/attachment.html>


More information about the petsc-users mailing list