[petsc-users] Node numbering in parallel partitioned mesh

Barry Smith bsmith at petsc.dev
Tue May 2 09:50:00 CDT 2023


   Assuming you have generated your renumbering, you can use https://petsc.org/release/manualpages/AO/AO/#ao to convert lists in the old (or new) numbering to the new (or old) numbering.

  Barry


> On May 2, 2023, at 8:34 AM, Matthew Knepley <knepley at gmail.com> wrote:
> 
> On Tue, May 2, 2023 at 8:25 AM Karthikeyan Chockalingam - STFC UKRI via petsc-users <petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov>> wrote:
>> Hello,
>> 
>>  
>> 
>> This is not exactly a PETSc question. I have a parallel partitioned finite element mesh. What are the steps involved in having a contiguous but unique set of node numbering from one partition to the next? There are nodes which are shared between different partitions. Moreover, this partition has to coincide parallel partition of PETSc Vec/Mat, which ensures data locality.
>> 
>>  
>> 
>> If you can post the algorithm or cite a reference, it will prove helpful.
>> 
> 
> Somehow, you have to know what "nodes" are shared. Once you know this, you can make a rule for numbering, such
> as "the lowest rank gets the shared nodes". We encapsulate this ownership relation in the PetscSF. Roots are owned,
> and leaves are not owned. The rule above is not great for load balance, so we have an optimization routine for the
> simple PetscSF: https://petsc.org/main/manualpages/DMPlex/DMPlexRebalanceSharedPoints/
> 
>   Thanks,
> 
>      Matt
>  
>> Many thanks.
>> 
>>  
>> 
>> Kind regards,
>> 
>> Karthik.
>> 
>>  
>> 
> 
> 
> -- 
> 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/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230502/566f7489/attachment-0001.html>


More information about the petsc-users mailing list