[petsc-users] Is it possible to enforce some mesh entities owned by the same CPU?

Matthew Knepley knepley at gmail.com
Wed Feb 2 18:50:19 CST 2022


On Wed, Feb 2, 2022 at 7:32 PM 袁煕 <yuanxi at advancesoft.jp> wrote:

> Hello everyone
>
> I need to enforce some specific nodes, for example, two nodes i,j in my
> finite element mesh, to be owned by the same CPU when doing DMPlex
> partition. Are there any means to implement it?
>

It might be possible using edge weights in the partitioner. However, we
have no automatic support for that. To do it manually, you would probably
have to
make the CSR matrix for the mesh, wrap that in a Mat, add values for
weights, call MatPartition, and then feed that partition to Plex. It is
doable, but it would
be some amount of work.

  Thanks,

    Matt


> Thanks in advance.
>
> Yuan
>
-- 
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/20220202/f3b271a3/attachment.html>


More information about the petsc-users mailing list