Commit c1831778 authored by Timo Koch's avatar Timo Koch
Browse files

[box][scv,scvf] Make backwards compatible with dune 2.5

parent c97110cf
......@@ -83,7 +83,11 @@ public:
// e.g. for integration
Geometry geometry() const
{
#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
return Geometry(Dune::GeometryTypes::cube(dim), corners_);
#else
return Geometry(Dune::GeometryType(Dune::GeometryType::cube, dim), corners_);
#endif
}
//! The global index of this scv
......
......@@ -154,7 +154,11 @@ public:
//! The geometry of the sub control volume face
Geometry geometry() const
{
#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
return Geometry(Dune::GeometryTypes::cube(Geometry::mydimension), corners_);
#else
return Geometry(Dune::GeometryType(Dune::GeometryType::cube, Geometry::mydimension), corners_);
#endif
}
private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment