DMDASetGetMatrix#

Sets the routine used by the DMDA to allocate a matrix.

Synopsis#

#include "petscdmda.h"   
PetscErrorCode DMDASetGetMatrix(DM da, PetscErrorCode (*f)(DM, Mat *))

Logically Collective; No Fortran Support

Input Parameters#

  • da - the DMDA object

  • f - the function that allocates the matrix for that specific DMDA

Note#

See DMDASetBlockFills() that provides a simple way to provide the nonzero structure for the diagonal and off-diagonal blocks of the matrix

See Also#

DM, DMDA, DMCreateMatrix(), DMDASetBlockFills()

Level#

developer

Location#

src/dm/impls/da/da.c


Edit on GitLab

Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages