From 5689168a17cb1aa619bfd60a109f971b5e12e407 Mon Sep 17 00:00:00 2001 From: Timo Koch <timokoch@uio.no> Date: Sat, 27 May 2023 14:49:20 +0200 Subject: [PATCH] [disc][tpfa] Simplify scvf after we no longer store the geometry --- .../cellcentered/tpfa/subcontrolvolumeface.hh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dumux/discretization/cellcentered/tpfa/subcontrolvolumeface.hh b/dumux/discretization/cellcentered/tpfa/subcontrolvolumeface.hh index dd99833a79..9d5f7e5afc 100644 --- a/dumux/discretization/cellcentered/tpfa/subcontrolvolumeface.hh +++ b/dumux/discretization/cellcentered/tpfa/subcontrolvolumeface.hh @@ -82,7 +82,6 @@ class CCTpfaSubControlVolumeFace using Scalar = typename T::Scalar; using CornerStorage = typename T::CornerStorage; using GridIndexStorage = typename T::GridIndexStorage; - using Geometry = typename T::Geometry; using BoundaryFlag = typename T::BoundaryFlag; public: @@ -110,7 +109,6 @@ public: const GridIndexStorage& scvIndices, bool isBoundary) : ParentType() - , geomType_(isGeometry.type()) , area_(isGeometry.volume()) , center_(isGeometry.center()) , unitOuterNormal_(is.centerUnitOuterNormal()) @@ -118,11 +116,7 @@ public: , scvIndices_(scvIndices) , boundary_(isBoundary) , boundaryFlag_{is} - { - corners_.resize(isGeometry.corners()); - for (int i = 0; i < isGeometry.corners(); ++i) - corners_[i] = isGeometry.corner(i); - } + {} //! The center of the sub control volume face const GlobalPosition& center() const @@ -187,8 +181,6 @@ public: } private: - Dune::GeometryType geomType_; - CornerStorage corners_; Scalar area_; GlobalPosition center_; GlobalPosition unitOuterNormal_; -- GitLab