From: bangerth Date: Fri, 15 Mar 2013 20:48:01 +0000 (+0000) Subject: Remove code necessary to support PETSc versions prior to 2.2.1. Such old X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f9031ddacc6c1729458e5f7f75545f606b02f0b;p=dealii-svn.git Remove code necessary to support PETSc versions prior to 2.2.1. Such old versions of PETSc have not been supported in a long time. git-svn-id: https://svn.dealii.org/trunk@28916 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/petsc_parallel_sparse_matrix.cc b/deal.II/source/lac/petsc_parallel_sparse_matrix.cc index a734506e54..b90774a75f 100644 --- a/deal.II/source/lac/petsc_parallel_sparse_matrix.cc +++ b/deal.II/source/lac/petsc_parallel_sparse_matrix.cc @@ -387,7 +387,7 @@ namespace PETScWrappers AssertThrow (ierr == 0, ExcPETScError(ierr)); #else //PETSC_VERSION>=2.3.3 - // new version to create the matrix. We + // create the matrix. We // do not set row length but set the // correct SparsityPattern later. int ierr; @@ -422,34 +422,10 @@ namespace PETScWrappers // class. if (preset_nonzero_locations == true) { - // starting with petsc 2.2.1, there is - // a function - // MatMPIAIJSetPreallocationCSR that + // MatMPIAIJSetPreallocationCSR // can be used to allocate the sparsity // pattern of a matrix if it is already - // available. if we don't have this, we - // have to somehow clumsily work around - // the whole thing: -#if DEAL_II_PETSC_VERSION_LT(2,2,1) - std::vector - - row_entries; - std::vector row_values; - for (unsigned int i=0; i