From 2061b98d33868cebff01fa7827cc0a7cde4a4309 Mon Sep 17 00:00:00 2001 From: hartmann Date: Fri, 17 Sep 2004 11:52:24 +0000 Subject: [PATCH] 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 --- deal.II/lac/include/lac/vector.templates.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5