Skip to content
Snippets Groups Projects
Commit f4375b44 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[mpfa][localassemblerbase] make resize functions static

parent b8b3329f
No related branches found
No related tags found
1 merge request!1325Feature/mpfa-scv-gradient-reconstruction
......@@ -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:
......
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