Skip to content
Snippets Groups Projects
Commit 99232bb1 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitri Naumov
Browse files

[MaL] LinAlg; Remove default impl of finalizeAsm.

The default impl., which is not doing anything, is error prone,
because passing an object of not matrix type, e.g. std::unique_ptr<PETScVector>,
the default impl. will be taken.
parent 2d0755e1
No related branches found
No related tags found
No related merge requests found
......@@ -308,6 +308,8 @@ void finalizeAssembly(EigenMatrix& x)
x.getRawMatrix().makeCompressed();
}
void finalizeAssembly(EigenVector& x) {}
} // namespace LinAlg
} // namespace MathLib
......
......@@ -98,11 +98,8 @@ double norm(MatrixOrVector const& x, MathLib::VecNormType type)
}
}
template<typename Matrix>
void finalizeAssembly(Matrix& /*A*/)
{
// By default do nothing.
}
template <typename Matrix>
void finalizeAssembly(Matrix& /*A*/);
// Matrix and Vector
......@@ -260,6 +257,7 @@ void matMultAdd(EigenMatrix const& A, EigenVector const& v1,
EigenVector const& v2, EigenVector& v3);
void finalizeAssembly(EigenMatrix& A);
void finalizeAssembly(EigenVector& A);
} // namespace LinAlg
......
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