From b7d61dbb02fd85ed16d118e3fb7a25eef4802c41 Mon Sep 17 00:00:00 2001
From: Timo Koch <timokoch@math.uio.no>
Date: Fri, 15 Jul 2022 18:46:22 +0000
Subject: [PATCH] [python] Update gridgeometry update interface

---
 dumux/python/discretization/gridgeometry.hh | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/dumux/python/discretization/gridgeometry.hh b/dumux/python/discretization/gridgeometry.hh
index 31e4f40275..34d540eeee 100644
--- a/dumux/python/discretization/gridgeometry.hh
+++ b/dumux/python/discretization/gridgeometry.hh
@@ -133,15 +133,11 @@ void registerGridGeometry(pybind11::handle scope, pybind11::class_<GG, Options..
     using GridView = typename GG::GridView;
 
     cls.def(pybind11::init([](const GridView& gridView){
-        auto gg = std::make_shared<GG>(gridView);
-        // remove this once the interface is changed on the C++ side (see #1056)
-        gg->update();
-        return gg;
+        return std::make_shared<GG>(gridView);
     }), "gridView"_a);
 
-    // update this once the interface is changed on the C++ side (see #1056)
     cls.def("update", [](GG& self, const GridView& gridView){
-        return self.update();
+        return self.update(gridView);
     }, "gridView"_a);
 
     cls.def_property_readonly("numDofs", &GG::numDofs);
-- 
GitLab