Skip to content

Commit

Permalink
still debug windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Jul 23, 2024
1 parent a32dee6 commit 3c1b0f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/linear_solvers/SparseLUSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ ErrorType SparseLULinearSolver::initialize(const Eigen::SparseMatrix<real_type>

ErrorType SparseLULinearSolver::solve(const Eigen::SparseMatrix<real_type> & J, RealVect & b, bool doesnt_need_refactor){
// solves (for x) the linear system J.x = b
// supposes that the solver has been initialized (call sparselu_solver.analyze() before calling that)
// supposes that the solver has been initialized (call sparselu_solver.analyzePattern() before calling that)
ErrorType err = ErrorType::NoError;
bool stop = false;
if(!doesnt_need_refactor){
// if the call to "klu_factor" has been made this iteration, there is no need
// if the call to "solver_.factorize" has been made this iteration, there is no need
// to re factor again the matrix
// i'm in the case where it has not
solver_.factorize(J);
Expand All @@ -40,6 +40,7 @@ ErrorType SparseLULinearSolver::solve(const Eigen::SparseMatrix<real_type> & J,
}
if(!stop){
RealVect Va = solver_.solve(b);
std::cout << "\tSparseLUSolver.cpp: solver_.info: " << solver_.info() << std::endl;
if (solver_.info() != Eigen::Success) {
err = ErrorType::SolverSolve;
}
Expand Down

0 comments on commit 3c1b0f0

Please sign in to comment.