From: wolf Date: Tue, 23 Mar 2004 16:57:25 +0000 (+0000) Subject: Use preexisting function to copy-create vector. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04306fd5035d718e56bccff18403186966acb619;p=dealii-svn.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); }