There was an error while loading. Please reload this page.
1 parent 1ba42af commit d03afe6Copy full SHA for d03afe6
1 file changed
src/scifem/solvers.py
@@ -283,11 +283,11 @@ def __init__(
283
super().__init__(u[0].function_space.mesh.comm)
284
285
# Set PETSc options for Krylov solver
286
+ prefix = self.krylov_solver.getOptionsPrefix()
287
+ if prefix is None:
288
+ prefix = ""
289
if petsc_options is not None:
290
# Set PETSc options
- prefix = self.krylov_solver.getOptionsPrefix()
- if prefix is None:
- prefix = ""
291
opts = PETSc.Options()
292
opts.prefixPush(prefix)
293
for k, v in petsc_options.items():
0 commit comments