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

[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