dune-pdelab  2.7-git
p0.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_PDELAB_CONSTRAINTS_P0_HH
3 #define DUNE_PDELAB_CONSTRAINTS_P0_HH
4 
5 #include "../common/geometrywrapper.hh"
6 #include <dune/typetree/typetree.hh>
7 
8 namespace Dune {
9  namespace PDELab {
10 
14 
17  : public TypeTree::LeafNode
18  {
19  public:
20  enum{doBoundary=false};
21  enum{doProcessor=true};
22  enum{doSkeleton=false};
23  enum{doVolume=false};
24 
26 
31  template<typename I, typename LFS, typename T>
33  const LFS& lfs, T& trafo) const
34  {
35  typename T::RowType empty;
36  typedef typename LFS::Traits::SizeType size_type;
37  for (size_type i=0; i<lfs.size(); i++){
38  trafo[lfs.dofIndex(i)] = empty;
39  }
40  }
41  };
43 
44  }
45 }
46 
47 #endif // DUNE_PDELAB_CONSTRAINTS_P0_HH
Dune::PDELab::P0ParallelConstraints::doSkeleton
@ doSkeleton
Definition: p0.hh:22
Dune::PDELab::IntersectionGeometry
Wrap intersection.
Definition: geometrywrapper.hh:56
Dune
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Dune::PDELab::P0ParallelConstraints::doVolume
@ doVolume
Definition: p0.hh:23
Dune::PDELab::P0ParallelConstraints::processor
void processor(const Dune::PDELab::IntersectionGeometry< I > &ig, const LFS &lfs, T &trafo) const
processor constraints
Definition: p0.hh:32
Dune::PDELab::P0ParallelConstraints
Parallel P0 constraints for overlapping grids.
Definition: p0.hh:16
Dune::PDELab::P0ParallelConstraints::doBoundary
@ doBoundary
Definition: p0.hh:20
ig
const IG & ig
Definition: constraints.hh:149
Dune::PDELab::P0ParallelConstraints::doProcessor
@ doProcessor
Definition: p0.hh:21