Commit 11002fa3 authored by Timo Koch's avatar Timo Koch
Browse files

[mpfa][scvf] Make backwards compatible with dune 2.5

parent c1831778
......@@ -23,6 +23,7 @@
#ifndef DUMUX_DISCRETIZATION_CC_MPFA_SUBCONTROLVOLUMEFACE_HH
#define DUMUX_DISCRETIZATION_CC_MPFA_SUBCONTROLVOLUMEFACE_HH
#include <dune/common/version.hh>
#include "methods.hh"
namespace Dumux
......@@ -144,7 +145,11 @@ public:
const GlobalPosition& unitOuterNormal() const { return unitOuterNormal_; }
//! The geometry of the sub control volume face
#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
Geometry geometry() const { return Geometry(Dune::GeometryTypes::cube(Geometry::mydimension), corners_); }
#else
Geometry geometry() const { return Geometry(Dune::GeometryType(Dune::GeometryType::cube, Geometry::mydimension), corners_); }
#endif
private:
bool boundary_;
......
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