Skip to content

Commit

Permalink
Compute symbolic factorization only when the problem structure change…
Browse files Browse the repository at this point in the history
…d (once at the beginning and at every phase switch)
  • Loading branch information
cvanaret committed Nov 19, 2024
1 parent a1b3b9f commit 8166937
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions uno/linear_algebra/SymmetricIndefiniteLinearSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ namespace uno {

template <typename ElementType>
void SymmetricIndefiniteLinearSystem<ElementType>::factorize_matrix(DirectSymmetricIndefiniteLinearSolver<size_t, ElementType>& linear_solver,
const WarmstartInformation& /*warmstart_information*/) {
// TODO compute the symbolic factorization only when the problem definition changes
if (true) {
const WarmstartInformation& warmstart_information) {
if (warmstart_information.problem_structure_changed) {
DEBUG << "Performing symbolic factorization of the indefinite system\n";
linear_solver.do_symbolic_factorization(this->matrix);
}
Expand Down

0 comments on commit 8166937

Please sign in to comment.