Skip to content

Commit

Permalink
LA: allow to initialize preconditioner from options
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed Jun 7, 2024
1 parent 0a7d803 commit 0fe3ba7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/LA/system_solvers_large.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3172,6 +3172,11 @@ void SystemSolver::prepareKSP()
// Perform actions before preconditioner set up
prePreconditionerSetupActions();

// Initialize preconditioner from options
PC pc;
KSPGetPC(m_KSP, &pc);
PCSetFromOptions(pc);

// Set up preconditioner
setupPreconditioner();

Expand Down

0 comments on commit 0fe3ba7

Please sign in to comment.