Skip to content
Snippets Groups Projects
Commit c1831778 authored by Timo Koch's avatar Timo Koch
Browse files

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

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