#include "petscdmda.h" PetscErrorCode DMDASetGetMatrix(DM da,PetscErrorCode (*f)(DM, Mat*))Logically Collective on DMDA
da | - the DMDA object | |
f | - the function that allocates the matrix for that specific DMDA |
Notes: See DMDASetBlockFills() that provides a simple way to provide the nonzero structure for the diagonal and off-diagonal blocks of the matrix
Not supported from Fortran