dune-pdelab
2.5-dev
dune
pdelab
constraints
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
7
namespace
Dune
{
8
namespace
PDELab {
9
13
15
class
P0ParallelConstraints
16
{
17
public
:
18
enum
{
doBoundary
=
false
};
19
enum
{
doProcessor
=
true
};
20
enum
{
doSkeleton
=
false
};
21
enum
{
doVolume
=
false
};
22
24
29
template
<
typename
I,
typename
LFS,
typename
T>
30
void
processor
(
const
Dune::PDELab::IntersectionGeometry<I>
&
ig
,
31
const
LFS& lfs, T& trafo)
const
32
{
33
typename
T::RowType empty;
34
typedef
typename
LFS::Traits::SizeType size_type;
35
for
(size_type i=0; i<lfs.size(); i++){
36
trafo[lfs.dofIndex(i)] = empty;
37
}
38
}
39
};
41
42
}
43
}
44
45
#endif // DUNE_PDELAB_CONSTRAINTS_P0_HH
Dune::PDELab::P0ParallelConstraints::doVolume
@ doVolume
Definition:
p0.hh:21
Dune::PDELab::P0ParallelConstraints
Parallel P0 constraints for overlapping grids.
Definition:
p0.hh:15
Dune
For backward compatibility – Do not use this!
Definition:
adaptivity.hh:28
Dune::PDELab::P0ParallelConstraints::doBoundary
@ doBoundary
Definition:
p0.hh:18
Dune::PDELab::P0ParallelConstraints::doSkeleton
@ doSkeleton
Definition:
p0.hh:20
ig
const IG & ig
Definition:
constraints.hh:148
Dune::PDELab::IntersectionGeometry
Wrap intersection.
Definition:
geometrywrapper.hh:56
Dune::PDELab::P0ParallelConstraints::processor
void processor(const Dune::PDELab::IntersectionGeometry< I > &ig, const LFS &lfs, T &trafo) const
processor constraints
Definition:
p0.hh:30
Dune::PDELab::P0ParallelConstraints::doProcessor
@ doProcessor
Definition:
p0.hh:19
Generated by
1.8.17