GridLocalToElementGeneral

Scatters values including ghost variables from the given ghost vector into the given element vector.

Synopsis

#include "grid.h" 
#include "gvec.h" 
int GridLocalToElementGeneral(Grid grid, Vec ghostVec, Vec reduceVec, PetscTruth reduceSystem, PetscTruth reduceElement, ElementVec vec)
Not collective

Input Parameters

grid - The grid
ghostVec - The vector of values (including ghsot points)
reduceVec - The vector of boundary values
reduceSystem - The flag for reducing boundary conditions
reduceElement - The flag for putting boundary values in the element vector
vec - The element vector

WARNING

Make sure that the indices in the element vector are local indices.

Note

If reduceSystem and reduceElement are PTESC_TRUE, then boundary values are placed in vec. If reduceElement is PETSC_FALSE, then zero is used instead.

Keywords

grid, element, scatter

See Also

GridLocalToElement(), GridGlobalToLocal()

Level:advanced
Location:
src/grid/interface/grid.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages