From 823bea8f46c7a4967e3e3a5f286eba2e23db1532 Mon Sep 17 00:00:00 2001 From: young Date: Tue, 4 Feb 2014 11:42:15 +0000 Subject: [PATCH] Remove code duplication. git-svn-id: https://svn.dealii.org/trunk@32401 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/petsc_full_matrix.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/deal.II/source/lac/petsc_full_matrix.cc b/deal.II/source/lac/petsc_full_matrix.cc index 8a35af920a..bb2271ffda 100644 --- a/deal.II/source/lac/petsc_full_matrix.cc +++ b/deal.II/source/lac/petsc_full_matrix.cc @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id$ // -// Copyright (C) 2004 - 2013 by the deal.II authors +// Copyright (C) 2004 - 2014 by the deal.II authors // // This file is part of the deal.II library. // @@ -27,12 +27,8 @@ namespace PETScWrappers FullMatrix::FullMatrix () { - const int m=0, n=0; - const int ierr - = MatCreateSeqDense (PETSC_COMM_SELF, m, n, PETSC_NULL, - &matrix); - - AssertThrow (ierr == 0, ExcPETScError(ierr)); + // empty constructor generate an empty matrix + do_reinit (0, 0); } FullMatrix::FullMatrix (const size_type m, @@ -71,7 +67,6 @@ namespace PETScWrappers } - const MPI_Comm & FullMatrix::get_mpi_communicator () const { -- 2.39.5