36 #ifndef OPM_DEFAULTGEOMETRYPOLICY_HEADER
37 #define OPM_DEFAULTGEOMETRYPOLICY_HEADER
39 #include "Geometry.hpp"
40 #include "EntityRep.hpp"
64 : cell_geom_(cell_geom), face_geom_(face_geom), point_geom_(point_geom)
76 static_assert(codim != 2,
"");
77 return geomVector(std::integral_constant<int,codim>());
87 EntityVariable<cpgrid::Geometry<3, 3>, 0>&
geomVector(
const std::integral_constant<int, 0>&)
92 const EntityVariable<cpgrid::Geometry<2, 3>, 1>&
geomVector(
const std::integral_constant<int, 1>&)
const
97 EntityVariable<cpgrid::Geometry<2, 3>, 1>&
geomVector(
const std::integral_constant<int, 1>&)
104 const EntityVariable<cpgrid::Geometry<0, 3>, 3>&
geomVector(
const std::integral_constant<int, codim>&)
const
106 static_assert(codim==3,
"Codim has to be 3");
110 EntityVariable<cpgrid::Geometry<0, 3>, 3>&
geomVector(
const std::integral_constant<int, codim>&)
112 static_assert(codim==3,
"Codim has to be 3");
115 EntityVariable<cpgrid::Geometry<3, 3>, 0> cell_geom_;
116 EntityVariable<cpgrid::Geometry<2, 3>, 1> face_geom_;
117 EntityVariable<cpgrid::Geometry<0, 3>, 3> point_geom_;
Struct that hods all the data needed to represent a Cpgrid.
Definition: CpGridData.hpp:123
Definition: DefaultGeometryPolicy.hpp:49
const EntityVariable< cpgrid::Geometry< 3 - codim, 3 >, codim > & geomVector() const
Definition: DefaultGeometryPolicy.hpp:74
DefaultGeometryPolicy()
Definition: DefaultGeometryPolicy.hpp:54
DefaultGeometryPolicy(const EntityVariable< cpgrid::Geometry< 3, 3 >, 0 > &cell_geom, const EntityVariable< cpgrid::Geometry< 2, 3 >, 1 > &face_geom, const EntityVariable< cpgrid::Geometry< 0, 3 >, 3 > &point_geom)
Definition: DefaultGeometryPolicy.hpp:61
A class design to hold a variable with a value for each entity of the given codimension,...
Definition: EntityRep.hpp:264
This class encapsulates geometry for both vertices, intersections and cells.
Definition: Geometry.hpp:71
Copyright 2019 Equinor AS.
Definition: CartesianIndexMapper.hpp:10