petsc-3.10.5 2019-03-28
Report Typos and Errors

PCPatchSetComputeOperator

Set the callback used to compute patch matrices

Synopsis

#include "petscpc.h" 
PetscErrorCode PCPatchSetComputeOperator(PC pc, PetscErrorCode (*func)(PC, PetscInt, Mat, IS, PetscInt, const PetscInt *, void *), void *ctx)

Input Parameters

pc - The PC
func - The callback
ctx - The user context

Note

The callback has signature

See Also

PCPatchGetComputeOperator(), PCPatchSetDiscretisationInfo()

Level

advanced

Location

src/ksp/pc/impls/patch/pcpatch.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages
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.