From d5fa400c1547176f7db9491f9c6a50d7986d9ef8 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 20 Feb 2017 16:22:42 -0500 Subject: [PATCH] Do not destroy a PETSc matrix twice. --- source/lac/petsc_parallel_sparse_matrix.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/source/lac/petsc_parallel_sparse_matrix.cc b/source/lac/petsc_parallel_sparse_matrix.cc index 069667ac51..87626f8eaa 100644 --- a/source/lac/petsc_parallel_sparse_matrix.cc +++ b/source/lac/petsc_parallel_sparse_matrix.cc @@ -196,7 +196,6 @@ namespace PETScWrappers this->communicator = communicator; // get rid of old matrix and generate a new one - destroy_matrix (matrix); const PetscErrorCode ierr = destroy_matrix (matrix); AssertThrow (ierr == 0, ExcPETScError (ierr)); -- 2.39.5