Re: [petsc-users] Passive DM Variables

2022-08-29 Thread Nicholas Arnold-Medabalimi
Yes, this is exactly what I was looking for. Thank you all. On Mon, Aug 29, 2022 at 8:02 AM Matthew Knepley wrote: > On Sun, Aug 28, 2022 at 12:44 PM Nicholas Arnold-Medabalimi < > narno...@umich.edu> wrote: > >> Hi >> >> I'm working on a finite volume implementation using DMPlex. I was >>

Re: [petsc-users] Passive DM Variables

2022-08-29 Thread Matthew Knepley
On Sun, Aug 28, 2022 at 12:44 PM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Hi > > I'm working on a finite volume implementation using DMPlex. I was > wondering what the best-considered way to add cell variables to the DM that > we don't want to be part of the ksp/snes solve. As

Re: [petsc-users] Passive DM Variables

2022-08-29 Thread Mark Adams
You want "auxiliary" variables. There may be better examples but, try looking at https://petsc.org/release/src/snes/tutorials/ex12.c.html And search for "aux". Mark On Sun, Aug 28, 2022 at 12:44 PM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Hi > > I'm working on a finite volume

[petsc-users] Passive DM Variables

2022-08-28 Thread Nicholas Arnold-Medabalimi
Hi I'm working on a finite volume implementation using DMPlex. I was wondering what the best-considered way to add cell variables to the DM that we don't want to be part of the ksp/snes solve. As far as I can tell, if I add an extra section with those, they will still be part of the F and U