5#ifndef DUNE_ALBERTA_NODEPROJECTION_HH
6#define DUNE_ALBERTA_NODEPROJECTION_HH
26 template<
class Proj,
class Impl >
27 class ProjectionFactory;
78 template<
class Proj,
class Impl >
97 This &operator= (
const This &other );
102 return asImpl().hasProjection( elementInfo, face );
107 return asImpl().hasProjection( elementInfo );
112 return asImpl().projection( elementInfo, face );
117 return asImpl().projection( elementInfo );
123 return static_cast< const Impl &
>( *this );
132 template<
class Proj,
class Impl >
148 bool hasProjection (
const ElementInfo &elementInfo,
const int face )
const;
149 bool hasProjection (
const ElementInfo &elementInfo )
const;
162 :
public ProjectionFactory< DuneBoundaryProjection< dim >, DuneGlobalBoundaryProjectionFactory< dim > >
207 :
public ALBERTA NODE_PROJECTION
220 return boundaryIndex_;
224 unsigned int boundaryIndex_;
232 template<
int dim,
class Projection >
245 Projection projection_;
250 projection_( projection )
263 const This *nodeProjection =
static_cast< const This *
>( info->active_projection );
265 assert( nodeProjection != NULL );
266 nodeProjection->projection_( elementInfo, local, global );
provides a wrapper for ALBERTA's el_info structure
#define ALBERTA
Definition: albertaheader.hh:29
Include standard header files.
Definition: agrid.hh:60
ALBERTA REAL_B LocalVector
Definition: misc.hh:49
static const int dimWorld
Definition: misc.hh:46
ALBERTA REAL_D GlobalVector
Definition: misc.hh:50
static ElementInfo createFake(const MeshPointer &mesh, const Element *element, int level, int type=0)
Definition: elementinfo.hh:752
Definition: albertagrid/projection.hh:135
Base::ElementInfo ElementInfo
Definition: albertagrid/projection.hh:141
ProjectionFactory()
Definition: albertagrid/projection.hh:144
Base::Projection Projection
Definition: albertagrid/projection.hh:140
Definition: albertagrid/projection.hh:36
Dune::DuneBoundaryProjection< dimWorld > Projection
Definition: albertagrid/projection.hh:45
void operator()(const ElementInfo &, const LocalVector, GlobalVector global) const
Definition: albertagrid/projection.hh:53
std::shared_ptr< const Projection > ProjectionPtr
Definition: albertagrid/projection.hh:46
static const int dimension
Definition: albertagrid/projection.hh:40
FieldVector< Real, dimWorld > GlobalCoordinate
Definition: albertagrid/projection.hh:43
const Projection & projection() const
Definition: albertagrid/projection.hh:64
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/projection.hh:42
DuneBoundaryProjection(const ProjectionPtr &projection)
Definition: albertagrid/projection.hh:48
Definition: albertagrid/projection.hh:80
static const int dimension
Definition: albertagrid/projection.hh:88
const Impl & asImpl() const
Definition: albertagrid/projection.hh:121
Proj Projection
Definition: albertagrid/projection.hh:86
bool hasProjection(const ElementInfo &elementInfo, const int face) const
Definition: albertagrid/projection.hh:100
bool hasProjection(const ElementInfo &elementInfo) const
Definition: albertagrid/projection.hh:105
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/projection.hh:90
Projection projection(const ElementInfo &elementInfo, const int face) const
Definition: albertagrid/projection.hh:110
Projection projection(const ElementInfo &elementInfo) const
Definition: albertagrid/projection.hh:115
Definition: albertagrid/projection.hh:163
Projection::ProjectionPtr DuneProjectionPtr
Definition: albertagrid/projection.hh:171
Base::Projection Projection
Definition: albertagrid/projection.hh:168
Projection projection(const ElementInfo &elementInfo, const int face) const
Definition: albertagrid/projection.hh:187
bool hasProjection(const ElementInfo &elementInfo, const int face) const
Definition: albertagrid/projection.hh:177
bool hasProjection(const ElementInfo &elementInfo) const
Definition: albertagrid/projection.hh:182
Projection projection(const ElementInfo &elementInfo) const
Definition: albertagrid/projection.hh:192
DuneGlobalBoundaryProjectionFactory(const DuneProjectionPtr &projection)
Definition: albertagrid/projection.hh:173
Base::ElementInfo ElementInfo
Definition: albertagrid/projection.hh:169
Definition: albertagrid/projection.hh:208
virtual ~BasicNodeProjection()
Definition: albertagrid/projection.hh:215
BasicNodeProjection(unsigned int boundaryIndex)
Definition: albertagrid/projection.hh:209
unsigned int boundaryIndex() const
Definition: albertagrid/projection.hh:218
Definition: albertagrid/projection.hh:235
static const int dimension
Definition: albertagrid/projection.hh:240
NodeProjection(unsigned int boundaryIndex, const Projection &projection)
Definition: albertagrid/projection.hh:248
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/projection.hh:242
Interface class for vertex projection at the boundary.
Definition: boundaryprojection.hh:33