From 914a372574ac1b72604529aa53b9cc59475d83d0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de>
Date: Tue, 16 Oct 2018 10:52:40 +0200
Subject: [PATCH] [box][fvgridgeom] add periodicvertexmap function in case of
 caching

---
 dumux/discretization/box/fvgridgeometry.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dumux/discretization/box/fvgridgeometry.hh b/dumux/discretization/box/fvgridgeometry.hh
index 3aa0a3c70d..cb40accda4 100644
--- a/dumux/discretization/box/fvgridgeometry.hh
+++ b/dumux/discretization/box/fvgridgeometry.hh
@@ -313,6 +313,10 @@ public:
     std::size_t periodicallyMappedDof(std::size_t dofIdx) const
     { return periodicVertexMap_.at(dofIdx); }
 
+    //! The index of the vertex / d.o.f. on the other side of the periodic boundary
+    const std::unordered_map<std::size_t, std::size_t> periodicVertexMap() const
+    { return periodicVertexMap_; }
+
 private:
 
     const FeCache feCache_;
-- 
GitLab