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
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
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
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
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
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
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
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
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