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

[disc][tpfa] Simplify scvf after we no longer store the geometry

parent 74fa294a
No related branches found
No related tags found
1 merge request!3557[cleanup] Simplify and remove some code deprecated in the previous release
......@@ -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_;
......
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