From 0fe3ba70ec24366760e85a84e4e69ded2fe12a76 Mon Sep 17 00:00:00 2001 From: Andrea Iob Date: Fri, 7 Jun 2024 14:01:08 +0200 Subject: [PATCH] LA: allow to initialize preconditioner from options --- src/LA/system_solvers_large.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/LA/system_solvers_large.cpp b/src/LA/system_solvers_large.cpp index c1af592d8a..8c9db4ace1 100644 --- a/src/LA/system_solvers_large.cpp +++ b/src/LA/system_solvers_large.cpp @@ -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();