Skip to content

Commit

Permalink
Update applications/LinearSolversApplication/custom_solvers/spectra_s…
Browse files Browse the repository at this point in the history
…ym_g_eigs_shift_solver.h

Co-authored-by: Philipp Bucher <[email protected]>
  • Loading branch information
armingeiser and philbucher authored Apr 14, 2021
1 parent 8000e49 commit 9956676
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ class SpectraSymGEigsShiftSolver
m_solver.compute(m_matA - sigma * m_matB);
}
const bool success = m_solver.info() == Eigen::Success;
if (!success)
throw std::invalid_argument("SymShiftInvert: factorization failed with the given shift");
KRATOS_ERROR_IF_NOT(success) << "SymShiftInvert: factorization failed with the given shift" << std::endl;
}

///
Expand Down

0 comments on commit 9956676

Please sign in to comment.