From: young Date: Tue, 4 Feb 2014 11:42:15 +0000 (+0000) Subject: Remove code duplication. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=823bea8f46c7a4967e3e3a5f286eba2e23db1532;p=dealii-svn.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 {