Skip to content
Snippets Groups Projects
Commit 61883e44 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Allow l-values as arguments

parent 713cb6aa
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -310,9 +310,10 @@ auto gs(double tol = LinearSolvers::defaultGsTol,
template <class Matrix, class Vector, class BitVector, class LocalSolver>
struct BlockGSStep : public LinearIterationStep<Matrix, Vector, BitVector> {
BlockGSStep(LocalSolver&& localSolver,
template<class LS>
BlockGSStep(LS&& localSolver,
BlockGS::Direction direction = BlockGS::Direction::FORWARD)
: localSolver_(localSolver)
: localSolver_(std::forward<LS>(localSolver))
, direction_(direction) {}
void iterate() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment