Skip to content
Snippets Groups Projects
Commit 7ed5ae6c authored by wenqing's avatar wenqing
Browse files

Removed one member function of PETScLinearSolver

parent 3a6c2bf0
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment