#include "petscpc.h" PetscErrorCode PCPatchSetComputeOperator(PC pc, PetscErrorCode (*func)(PC, PetscInt, Mat, IS, PetscInt, const PetscInt *, void *), void *ctx)
pc | - The PC | |
func | - The callback | |
ctx | - The user context |
usercomputeop(pc, point, mat, cellIS, n, u, ctx) | - + pc - The PC + point - The point + mat - The patch matrix + cellIS - An array of the cell numbers + n - The size of g2l + g2l - The global to local dof translation table + ctx - The user context and can assume that the matrix entries have been set to zero before the call. |