Skip to content

Commit

Permalink
added prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Oct 31, 2024
1 parent 364a1b9 commit 3f9767f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/festim/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Check warning on line 140 in src/festim/problem.py

View check run for this annotation

Codecov / codecov/patch

src/festim/problem.py#L136-L140

Added lines #L136 - L140 were not covered by tests

print(opts)

def run(self):
"""Runs the model"""

Expand Down

0 comments on commit 3f9767f

Please sign in to comment.