]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use preexisting function to copy-create vector.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Mar 2004 16:57:25 +0000 (16:57 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Mar 2004 16:57:25 +0000 (16:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@8843 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_vector.h

index df06e43adf5e1c16376d3b3a29fbd7ef1d30b155..248b0f7c6b561726958efa355533fbd5eefb550e 100644 (file)
@@ -115,9 +115,7 @@ namespace PETScWrappers
   template <typename number>
   Vector::Vector (const ::Vector<number> &v)
   {
-    int ierr
-      = VecCreateSeq (PETSC_COMM_SELF, v.size(), &vector);
-    AssertThrow (ierr == 0, ExcPETScError(ierr));
+    create_vector (v.size());
 
     VectorBase::operator = (v);
   }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.