From 5820a2e2a4a3853d70404c4ab8e33b30e8a61530 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Fri, 16 Jul 2021 23:35:09 +0200
Subject: [PATCH] [python][gridgeometry] Use const reference as argument type

---
 dumux/python/discretization/gridgeometry.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dumux/python/discretization/gridgeometry.hh b/dumux/python/discretization/gridgeometry.hh
index 461e3c17bf..83534faf60 100644
--- a/dumux/python/discretization/gridgeometry.hh
+++ b/dumux/python/discretization/gridgeometry.hh
@@ -124,7 +124,7 @@ void registerGridGeometry(pybind11::handle scope, pybind11::class_<GG, Options..
 
     using GridView = typename GG::GridView;
 
-    cls.def(pybind11::init([](GridView gridView){
+    cls.def(pybind11::init([](const GridView& gridView){
         return std::make_shared<GG>(gridView);
     }), "gridView"_a);
 
-- 
GitLab