Dune Core Modules (2.11.0)

foamgridgeometry.hh
Go to the documentation of this file.
1#ifndef DUNE_FOAMGRID_GEOMETRY_HH
2#define DUNE_FOAMGRID_GEOMETRY_HH
3
8#include <vector>
9#include <array>
10
13
14
15namespace Dune {
16
17
18template<int mydim, int coorddim, class GridImp>
19class FoamGridGeometry :
20 public AffineGeometry<typename GridImp::ctype, mydim, coorddim>
21{
22 public:
23
27 FoamGridGeometry() {}
28
32 FoamGridGeometry(const GeometryType& type, const std::vector<FieldVector<typename GridImp::ctype,coorddim> >& coordinates) :
33 AffineGeometry<typename GridImp::ctype, mydim, coorddim>(type, coordinates)
34 {}
35
40 template<std::size_t size>
41 FoamGridGeometry(const GeometryType& type, const std::array<FieldVector<typename GridImp::ctype,coorddim>, size>& coordinates) :
42 AffineGeometry<typename GridImp::ctype, mydim, coorddim>(type, coordinates)
43 {}
44};
45
46
47} // namespace Dune
48
49#endif
An implementation of the Geometry interface for affine geometries.
AffineGeometry()=default
Constructs an empty geometry.
GridImp::ctype ctype
Type used for coordinates.
Definition: affinegeometry.hh:53
Various macros to work with Dune module version numbers.
Dune namespace
Definition: alignedallocator.hh:13
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Feb 14, 23:39, 2026)