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
trig_inhomogeneous_u(
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 bound