From f4375b44d8fda5509e4f2f44dcf3f4b8574aa401 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de>
Date: Thu, 22 Nov 2018 12:55:17 +0100
Subject: [PATCH] [mpfa][localassemblerbase] make resize functions static

---
 .../cellcentered/mpfa/localassemblerbase.hh               | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dumux/discretization/cellcentered/mpfa/localassemblerbase.hh b/dumux/discretization/cellcentered/mpfa/localassemblerbase.hh
index 9774565fc0..d5dece709e 100644
--- a/dumux/discretization/cellcentered/mpfa/localassemblerbase.hh
+++ b/dumux/discretization/cellcentered/mpfa/localassemblerbase.hh
@@ -283,7 +283,7 @@ protected:
     template< class Matrix,
               class size_type,
               std::enable_if_t<matrix_has_resize_method<Matrix>::value, int> = 0 >
-    void resizeMatrix_(Matrix& M, size_type rows, size_type cols)
+    static void resizeMatrix_(Matrix& M, size_type rows, size_type cols)
     {
         M.resize(rows, cols);
     }
@@ -292,14 +292,14 @@ protected:
     template< class Matrix,
               class size_type,
               std::enable_if_t<!matrix_has_resize_method<Matrix>::value, int> = 0 >
-    void resizeMatrix_(Matrix& M, size_type rows, size_type cols)
+    static void resizeMatrix_(Matrix& M, size_type rows, size_type cols)
     {}
 
     //! resizes a vector to the given size (specialization for dynamic matrix type)
     template< class Vector,
               class size_type,
               std::enable_if_t<vector_has_resize_method<Vector>::value, int> = 0 >
-    void resizeVector_(Vector& v, size_type size)
+    static void resizeVector_(Vector& v, size_type size)
     {
         v.resize(size);
     }
@@ -308,7 +308,7 @@ protected:
     template< class Vector,
               class size_type,
               std::enable_if_t<!vector_has_resize_method<Vector>::value, int> = 0 >
-    void resizeVector_(Vector& v, size_type rows)
+    static void resizeVector_(Vector& v, size_type rows)
     {}
 
 private:
-- 
GitLab