Re: [petsc-users] Creating DMPlex from the subsection of a DM

2024-02-07 Thread Matthew Knepley
On Wed, Feb 7, 2024 at 8:30 AM Mark Adams wrote: > Wait for Matt to chime in, but I think you will need to start from scratch > and use > https://petsc.org/release/manualpages/DMPlex/DMPlexBuildFromCellList > Let me restate things to make sure I get it. You want to select a submesh that retains

Re: [petsc-users] Creating DMPlex from the subsection of a DM

2024-02-07 Thread Mark Adams
Wait for Matt to chime in, but I think you will need to start from scratch and use https://petsc.org/release/manualpages/DMPlex/DMPlexBuildFromCellList Mark On Wed, Feb 7, 2024 at 5:36 AM Vilmer Dahlberg via petsc-users < petsc-users@mcs.anl.gov> wrote: > Dear PETSc dev team, > > I am working on

[petsc-users] Creating DMPlex from the subsection of a DM

2024-02-07 Thread Vilmer Dahlberg via petsc-users
Dear PETSc dev team, I am working on an application which makes use of DMPlex. I would like to extract a subsection of the dm based on some field metric defined on its vertices or cells. I am using DMLabel to mark my boundary conditions and would like the child mesh to retain some of the labels