dune-foamgrid 2.8.0
Loading...
Searching...
No Matches
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
11#include <dune/common/version.hh>
12#include <dune/geometry/affinegeometry.hh>
13
14
15namespace Dune {
16
17
18template<int mydim, int coorddim, class GridImp>
20 public AffineGeometry<typename GridImp::ctype, mydim, coorddim>
21{
22 public:
23
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
Definition: dgffoam.cc:6
Definition: foamgridgeometry.hh:21
FoamGridGeometry()
This is DefaultConstructor.
Definition: foamgridgeometry.hh:27
FoamGridGeometry(const GeometryType &type, const std::vector< FieldVector< typename GridImp::ctype, coorddim > > &coordinates)
Construct geometry from coordinate vector.
Definition: foamgridgeometry.hh:32
FoamGridGeometry(const GeometryType &type, const std::array< FieldVector< typename GridImp::ctype, coorddim >, size > &coordinates)
Construct geometry from coordinate array.
Definition: foamgridgeometry.hh:41