Skip to content

Commit

Permalink
Suppresses CppCheck warning about missing member copy. Kernel handles…
Browse files Browse the repository at this point in the history
… cannot be

copied and must be regenerated as done here.  CppCheck does not understand this.

cannot be copied and must be recreated
  • Loading branch information
ddement committed Jan 16, 2025
1 parent 9173cd9 commit 5391993
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/solver/solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ struct Solver {
CreateSparseDenseSolver<GlobalCrsMatrixType, GlobalMultiVectorType>(A, x_mv, b)
) {}

// cppcheck-suppress missingMemberCopy
Solver(const Solver& other)
: num_system_nodes(other.num_system_nodes),
num_system_dofs(other.num_system_dofs),
Expand Down Expand Up @@ -175,6 +176,7 @@ struct Solver {
x_mv(Tpetra::createMultiVector<GlobalCrsMatrixType::scalar_type>(A->getDomainMap(), 1)),
R("R", num_dofs),
x("x", num_dofs),
convergence_err(other.convergence_err),
amesos_solver(
CreateSparseDenseSolver<GlobalCrsMatrixType, GlobalMultiVectorType>(A, x_mv, b)
) {}
Expand Down

0 comments on commit 5391993

Please sign in to comment.