Re: [petsc-users] Question about ordering of the gradient in DS

2024-12-09 Thread Matthew Knepley
On Mon, Dec 9, 2024 at 6:34 AM Gong Yujie wrote: > Dear PETSc group, > > I would like to inquire about the storage of the gradient in function > PetscDSSetResidual: > > PetscErrorCode PetscDSSetResidual(PetscDS ds, PetscInt f, void > (*f0)(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt

[petsc-users] Question about ordering of the gradient in DS

2024-12-09 Thread Gong Yujie
Dear PETSc group, I would like to inquire about the storage of the gradient in function PetscDSSetResidual: PetscErrorCode PetscDSSetResidual(PetscDS ds, PetscInt f, void (*f0)(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], con