From: hartmann Date: Fri, 17 Sep 2004 11:52:24 +0000 (+0000) Subject: Replace PETScWrappers::VectorBase exceptions by exceptions defined in lac/exceptions.h X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2061b98d33868cebff01fa7827cc0a7cde4a4309;p=dealii-svn.git Replace PETScWrappers::VectorBase exceptions by exceptions defined in lac/exceptions.h git-svn-id: https://svn.dealii.org/trunk@9630 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/vector.templates.h b/deal.II/lac/include/lac/vector.templates.h index d17ca6a52b..db7ce15a82 100644 --- a/deal.II/lac/include/lac/vector.templates.h +++ b/deal.II/lac/include/lac/vector.templates.h @@ -105,14 +105,14 @@ Vector::Vector (const PETScWrappers::Vector &v) // and copy it PetscScalar *start_ptr; int ierr = VecGetArray (static_cast(v), &start_ptr); - AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr)); + AssertThrow (ierr == 0, ExcPETScError(ierr)); std::copy (start_ptr, start_ptr+dim, begin()); // restore the representation of the // vector ierr = VecRestoreArray (static_cast(v), &start_ptr); - AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr)); + AssertThrow (ierr == 0, ExcPETScError(ierr)); } } @@ -653,14 +653,14 @@ Vector::operator = (const PETScWrappers::Vector &v) // and copy it PetscScalar *start_ptr; int ierr = VecGetArray (static_cast(v), &start_ptr); - AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr)); + AssertThrow (ierr == 0, ExcPETScError(ierr)); std::copy (start_ptr, start_ptr+dim, begin()); // restore the representation of the // vector ierr = VecRestoreArray (static_cast(v), &start_ptr); - AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr)); + AssertThrow (ierr == 0, ExcPETScError(ierr)); } return *this;