From: Toby D. Young Date: Tue, 4 Feb 2014 11:42:15 +0000 (+0000) Subject: Remove code duplication. X-Git-Tag: v8.2.0-rc1~888 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c2c5034a4c70aa0578aaaed402f6e645ba7a09d;p=dealii.git Remove code duplication. git-svn-id: https://svn.dealii.org/trunk@32401 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 {