DAGetInterpolation

Gets and interpolation matrix that maps between grids associated with two DAs.

Synopsis

#include "da.h"   
int DAGetInterpolation(DA dac,DA daf,Mat *A,Vec *scale)
Collective on DA

Input Parameters

dac - the coarse grid DA
daf - the fine grid DA

Output Parameters

A - the interpolation matrix
scale - a scaling vector used to scale the coarse grid restricted vector before applying the grid function or grid Jacobian to it.

Keywords

interpolation, restriction, multigrid

See Also

DARefine()

Examples

src/sles/examples/tutorials/ex19.c
src/snes/examples/tutorials/ex16.c

Level:intermediate
Location:src/dm/da/src/dainterp.c
DA Index
Table of Contents