Skip to content

Commit

Permalink
Merge pull request #74 from xDarkLemon/up
Browse files Browse the repository at this point in the history
Add set_block_size and set_is_nullspace for linear sovler
  • Loading branch information
teseoch authored Mar 14, 2024
2 parents 9f8a5e1 + 7536eb3 commit 97a92c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/polysolve/linear/Solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ namespace polysolve::linear
// If solver uses dense matrices
virtual bool is_dense() const { return false; }

// Set block size for multigrid solvers
virtual void set_block_size(int block_size) {}

// If the problem is nullspace for multigrid solvers
virtual void set_is_nullspace(const VectorXd &x) {}

//
// @brief { Solve the linear system Ax = b }
//
Expand Down

0 comments on commit 97a92c5

Please sign in to comment.