diff --git a/cashocs/nonlinear_solvers/snes.py b/cashocs/nonlinear_solvers/snes.py index 07c10b83..e4461e4c 100644 --- a/cashocs/nonlinear_solvers/snes.py +++ b/cashocs/nonlinear_solvers/snes.py @@ -226,7 +226,7 @@ def solve(self) -> fenics.Function: raise _exceptions.PETScSNESError(converged_reason) if hasattr(PETSc, "garbage_cleanup"): - snes.destory() + snes.destroy() PETSc.garbage_cleanup(comm=self.comm) PETSc.garbage_cleanup()