From bd0c528506884f9989c5b4d0de9319986b6e67bc Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 17 Dec 2017 15:46:18 -0700 Subject: [PATCH] Add a comment and PETSc KSP and PC objects. --- source/lac/petsc_solver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/lac/petsc_solver.cc b/source/lac/petsc_solver.cc index 080ce2aba7..8ec19b7957 100644 --- a/source/lac/petsc_solver.cc +++ b/source/lac/petsc_solver.cc @@ -625,6 +625,8 @@ namespace PETScWrappers SparseDirectMUMPS::SolverDataMUMPS::~SolverDataMUMPS () { destroy_krylov_solver (ksp); + // the 'pc' object is owned by the 'ksp' object, and consequently + // does not have to be destroyed explicitly here } -- 2.39.5