Re: [petsc-users] Solving a simpler PDE results in error while solving the original equation works in snes/tutorials/ex13.c

2023-07-10 Thread Matthew Knepley
On Mon, Jul 10, 2023 at 5:02 PM Tony Wu wrote: > In snes/tutorials/ex13.c, > there is a function SetupPrimalProblem(), which sets up the f_0 and f_1 in > PetscDSSetResidual() as described in > https://petsc.org/release/manualpages/DT/PetscDSSetResidual/#petscdssetresidual > , > and also the

[petsc-users] Solving a simpler PDE results in error while solving the original equation works in snes/tutorials/ex13.c

2023-07-10 Thread Tony Wu
In snes/tutorials/ex13.c, there is a function SetupPrimalProblem(), which sets up the f_0 and f_1 in PetscDSSetResidual() as described in https://petsc.org/release/manualpages/DT/PetscDSSetResidual/#petscdssetresidual , and also the boundary conditions using the exact solution