diff --git a/include/NeoFOAM/linearAlgebra/linearSystem.hpp b/include/NeoFOAM/linearAlgebra/linearSystem.hpp index 216bcdde0..5be2654aa 100644 --- a/include/NeoFOAM/linearAlgebra/linearSystem.hpp +++ b/include/NeoFOAM/linearAlgebra/linearSystem.hpp @@ -29,6 +29,8 @@ class LinearSystem NF_ASSERT(matrix.nRows() == rhs.size(), "Matrix and RHS size mismatch"); }; + LinearSystem(const LinearSystem& ls) : matrix_(ls.matrix_), rhs_(ls.rhs_) {}; + LinearSystem(const Executor exec) : matrix_(exec), rhs_(exec, 0) {} ~LinearSystem() = default;