From: David Wells Date: Mon, 20 Feb 2017 21:22:42 +0000 (-0500) Subject: Do not destroy a PETSc matrix twice. X-Git-Tag: v8.5.0-rc1~104^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5fa400c1547176f7db9491f9c6a50d7986d9ef8;p=dealii.git Do not destroy a PETSc matrix twice. --- 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));