From 83dc1c855b787de71e026c1dd3f857208dfb3f0a Mon Sep 17 00:00:00 2001 From: xDarkLemon Date: Tue, 12 Mar 2024 19:56:04 -0400 Subject: [PATCH 1/2] Add set_block_size and set_is_nullspace for linear sovler --- src/polysolve/linear/Solver.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/polysolve/linear/Solver.hpp b/src/polysolve/linear/Solver.hpp index deaae018..4775639e 100644 --- a/src/polysolve/linear/Solver.hpp +++ b/src/polysolve/linear/Solver.hpp @@ -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(bool is_nullspace) {} + // // @brief { Solve the linear system Ax = b } // From 7536eb3c78804419e422906d012cc3d3eede70da Mon Sep 17 00:00:00 2001 From: xDarkLemon Date: Wed, 13 Mar 2024 20:45:49 -0400 Subject: [PATCH 2/2] Update set_is_nullspace for linear sovler --- src/polysolve/linear/Solver.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polysolve/linear/Solver.hpp b/src/polysolve/linear/Solver.hpp index 4775639e..13fdedaa 100644 --- a/src/polysolve/linear/Solver.hpp +++ b/src/polysolve/linear/Solver.hpp @@ -111,7 +111,7 @@ namespace polysolve::linear virtual void set_block_size(int block_size) {} // If the problem is nullspace for multigrid solvers - virtual void set_is_nullspace(bool is_nullspace) {} + virtual void set_is_nullspace(const VectorXd &x) {} // // @brief { Solve the linear system Ax = b }