From 3f9767fbd2b52b3a9a230f62d8225470518e2ae3 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Thu, 31 Oct 2024 12:56:45 -0400 Subject: [PATCH] added prefix --- src/festim/problem.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/festim/problem.py b/src/festim/problem.py index 76ecaf326..ff4b36c26 100644 --- a/src/festim/problem.py +++ b/src/festim/problem.py @@ -134,12 +134,11 @@ def create_solver(self): else: # Set PETSc options opts = PETSc.Options() + option_prefix = ksp.getOptionsPrefix() for k, v in self.petsc_options.items(): - opts[k] = v + opts[f"{option_prefix}{k}"] = v ksp.setFromOptions() - print(opts) - def run(self): """Runs the model"""