[petsc-users] Some issues about DMDA and MatSetValuesStencil

2022-08-03 Thread wangxq2020--- via petsc-users
Hello! I am a beginner about petsc,and I'm studing the DMDA recently. I hava a exercise code below, i run it with 4 processes, why is the size of A matrix is 15×15? The user manual said A is the Jobian matix, is there any detailed material that explain the process? Another question is the settin

Re: [petsc-users] DMPlex total point counts

2022-08-03 Thread Matthew Knepley
On Tue, Aug 2, 2022 at 4:00 PM Nicholas Arnold-Medabalimi < narno...@umich.edu> wrote: > Hi > > Currently, in my distributed DMPlex object, every so often, I want to look > at total cell counts. To do this in my current implementation, I get the > cell stratum from the DMplex and search through th

Re: [petsc-users] Some issues about DMDA and MatSetValuesStencil

2022-08-03 Thread Matthew Knepley
On Wed, Aug 3, 2022 at 9:17 AM wangxq2020--- via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hello! > I am a beginner about petsc,and I'm studing the DMDA recently. I hava a > exercise code below, i run it with 4 processes, why is the size of A matrix > is 15×15? > Are you sure it is not 16x1