Re: [petsc-users] DMPlex ghost cell indexing

2022-07-02 Thread Matthew Knepley
On Sat, Jul 2, 2022 at 6:20 PM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Dear PETSc users, > > I have some general novice questions regarding how to properly access a > distributed DMPLEX vector that has ghost cells for a finite volume use case. > > My process for setup > 1) genera

Re: [petsc-users] DMPlex ghost cell indexing

2022-07-02 Thread Mark Adams
I think you want https://petsc.org/main/docs/manualpages/DMPLEX/DMPlexConstructGhostCells Mark On Sat, Jul 2, 2022 at 6:20 PM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Dear PETSc users, > > I have some general novice questions regarding how to properly access a > distributed DMP

[petsc-users] DMPlex ghost cell indexing

2022-07-02 Thread Nicholas Arnold-Medabalimi
Dear PETSc users, I have some general novice questions regarding how to properly access a distributed DMPLEX vector that has ghost cells for a finite volume use case. My process for setup 1) generated a simple box mesh using DMPlexCreateBoxMesh 2) distribute the mesh using DMPlexDistribute (at th

Re: [petsc-users] DMPlexInterpolate error nonconforming object sizes

2022-07-02 Thread Prateek Gupta
Thanks Matt. Fixed it now! Thank you. Sincerely, Prateek Gupta, PhD On Sat, Jul 2, 2022 at 5:10 PM Matthew Knepley wrote: > On Sat, Jul 2, 2022 at 7:34 AM Matthew Knepley wrote: > >> On Sat, Jul 2, 2022 at 7:15 AM Prateek Gupta >> wrote: >> >>> Hi Matt, >>> you are right about the first DM

Re: [petsc-users] DMPlexInterpolate error nonconforming object sizes

2022-07-02 Thread Matthew Knepley
On Sat, Jul 2, 2022 at 7:34 AM Matthew Knepley wrote: > On Sat, Jul 2, 2022 at 7:15 AM Prateek Gupta > wrote: > >> Hi Matt, >> you are right about the first DM being invalid. I wasn't reading the >> cells properly. But now that I have fixed it, the code seems to hang in an >> infinite loop in DM

Re: [petsc-users] DMPlexInterpolate error nonconforming object sizes

2022-07-02 Thread Matthew Knepley
On Sat, Jul 2, 2022 at 7:15 AM Prateek Gupta wrote: > Hi Matt, > you are right about the first DM being invalid. I wasn't reading the cells > properly. But now that I have fixed it, the code seems to hang in an > infinite loop in DMPlexStratify. I am attaching the working snippet which > exhibits

Re: [petsc-users] DMPlexInterpolate error nonconforming object sizes

2022-07-02 Thread Prateek Gupta
Hi Matt, you are right about the first DM being invalid. I wasn't reading the cells properly. But now that I have fixed it, the code seems to hang in an infinite loop in DMPlexStratify. I am attaching the working snippet which exhibits the issue. Thanks for your help! Sincerely, Prateek Gupta, P

Re: [petsc-users] DMPlexInterpolate error nonconforming object sizes

2022-07-02 Thread Matthew Knepley
On Sat, Jul 2, 2022 at 3:11 AM Prateek Gupta wrote: > Hi, > I am trying to create a minimal example of reading nodes and elements from > a text file and creating dmplex mesh. So far I am following the procedure > as in plexfluent.c. However, while trying to interpolate the mesh, I get > the error

[petsc-users] DMPlexInterpolate error nonconforming object sizes

2022-07-02 Thread Prateek Gupta
Hi, I am trying to create a minimal example of reading nodes and elements from a text file and creating dmplex mesh. So far I am following the procedure as in plexfluent.c. However, while trying to interpolate the mesh, I get the error, [0]PETSC ERROR: Nonconforming object sizes [0]PETSC ERROR: Th