PETSc version 3.17.4
Fix/Edit manual page

DMSetNearNullSpaceConstructor

Provide a callback function which constructs the near-nullspace for a given field

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMSetNearNullSpaceConstructor(DM dm, PetscInt field, PetscErrorCode (*nullsp)(DM, PetscInt, PetscInt, MatNullSpace *))
Logically collective on DM

Input Parameters

dm - The DM
field - The field number for the nullspace
nullsp - A callback to create the near-nullspace

Calling sequence of nullsp

    PetscErrorCode nullsp(DM dm, PetscInt origField, PetscInt field, MatNullSpace *nullSpace)
dm - The present DM
origField - The field number given above, in the original DM
field - The field number in dm
nullSpace - The nullspace for the given field

This function is currently not available from Fortran.

See Also

DMGetNearNullSpaceConstructor(), DMSetNullSpaceConstructor(), DMGetNullSpaceConstructor(), DMCreateSubDM(), DMCreateSuperDM()

Level

intermediate

Location

src/dm/interface/dm.c

Examples

src/snes/tutorials/ex17.c.html

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