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