diff --git a/dumux/discretization/staggered/fvelementgeometry.hh b/dumux/discretization/staggered/fvelementgeometry.hh index 0f37a115503b188e54a7b27ba945fffca03d0dac..626449c96a6ad192a96c2658726488ae8c7db538 100644 --- a/dumux/discretization/staggered/fvelementgeometry.hh +++ b/dumux/discretization/staggered/fvelementgeometry.hh @@ -219,11 +219,20 @@ public: bool hasBoundaryScvf() const { return hasBoundaryScvf_; } - typename SubControlVolumeFace::Traits::Geometry geometry (const SubControlVolumeFace& scvf) const - { - assert(isBound()); - return scvf.geometry(); - } + // suppress warnings due to current implementation + // these interfaces should be used! + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" + + //! Create the geometry of a given sub control volume + typename SubControlVolume::Traits::Geometry geometry(const SubControlVolume& scv) const + { return scv.geometry(); } + + //! Create the geometry of a given sub control volume face + typename SubControlVolumeFace::Traits::Geometry geometry(const SubControlVolumeFace& scvf) const + { return scvf.geometry(); } + + #pragma GCC diagnostic pop private: //! Binding of an element preparing the geometries only inside the element