diff --git a/MathLib/LinAlg/PETSc/PETScLinearSolver.h b/MathLib/LinAlg/PETSc/PETScLinearSolver.h index 5be0fd0b45b16d43be1e2b73c6c4f99d3be6b32e..a4454706ca84163136a914d3c8717647b970ec7f 100644 --- a/MathLib/LinAlg/PETSc/PETScLinearSolver.h +++ b/MathLib/LinAlg/PETSc/PETScLinearSolver.h @@ -66,19 +66,6 @@ class PETScLinearSolver return its; } - /*! - \brief Function used to prepare quiting of program - Release memory and conclude the program before exit. - It must be called before exit() being called after solver fails - to converge. - */ - void Finalize() - { - PetscPrintf(PETSC_COMM_WORLD, "\nLinear solver (PETSc KSP) failed, quit now.\n"); - KSPDestroy(&_solver); - PetscFinalize(); - } - private: /// Matrix, kept as a member only for solving successive linear equation /// that preconditioner matrix may vary.