#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMRestrict(DM fine,Mat restrct,Vec rscale,Mat inject,DM coarse)Collective if any hooks are
fine | - finer DM to use as a base | |
restrct | - restriction matrix, apply using MatRestrict() | |
rscale | - scaling vector for restriction | |
inject | - injection matrix, also use MatRestrict() | |
coarse | - coarser DM to update |