From: Wolfgang Bangerth Date: Tue, 23 Mar 2004 16:57:25 +0000 (+0000) Subject: Use preexisting function to copy-create vector. X-Git-Tag: v8.0.0~15505 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f42baf1470ef26cab3456f19ac8dd8c10373f109;p=dealii.git Use preexisting function to copy-create vector. git-svn-id: https://svn.dealii.org/trunk@8843 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/petsc_vector.h b/deal.II/lac/include/lac/petsc_vector.h index df06e43adf..248b0f7c6b 100644 --- a/deal.II/lac/include/lac/petsc_vector.h +++ b/deal.II/lac/include/lac/petsc_vector.h @@ -115,9 +115,7 @@ namespace PETScWrappers template Vector::Vector (const ::Vector &v) { - int ierr - = VecCreateSeq (PETSC_COMM_SELF, v.size(), &vector); - AssertThrow (ierr == 0, ExcPETScError(ierr)); + create_vector (v.size()); VectorBase::operator = (v); }