Skip to content

Commit

Permalink
add copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningScheufler committed Jan 26, 2025
1 parent dd9d31a commit 99ea680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/NeoFOAM/linearAlgebra/linearSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99ea680

Please sign in to comment.