2 #ifndef DUNE_PDELAB_P0GHOSTCONSTRAINTS_HH
3 #define DUNE_PDELAB_P0GHOSTCONSTRAINTS_HH
5 #include "../common/geometrywrapper.hh"
6 #include<dune/grid/common/gridenums.hh>
31 template<
typename P,
typename EG,
typename LFS,
typename T>
32 void volume (
const P& param,
const EG&
eg,
const LFS& lfs, T& trafo)
const
35 if (eg.entity().partitionType()==Dune::InteriorEntity)
39 else if (eg.entity().partitionType()==Dune::GhostEntity){
40 typename T::RowType empty;
41 typedef typename LFS::Traits::SizeType size_type;
42 for (size_type i=0; i<lfs.size(); i++){
43 trafo[lfs.dofIndex(i)] = empty;
Definition: p0ghost.hh:21
void volume(const P ¶m, const EG &eg, const LFS &lfs, T &trafo) const
volume constraints
Definition: p0ghost.hh:32
Definition: p0ghost.hh:20
Definition: p0ghost.hh:19
Definition: adaptivity.hh:27
Parallel P0 constraints for nonoverlapping grids with ghosts.
Definition: p0ghost.hh:16
const EG & eg
Definition: constraints.hh:280
Definition: p0ghost.hh:22