]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace PETScWrappers::VectorBase exceptions by exceptions defined in lac/exceptions.h
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Sep 2004 11:52:24 +0000 (11:52 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Sep 2004 11:52:24 +0000 (11:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@9630 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.templates.h

index d17ca6a52b5a73116b98b778c84f1f7113679386..db7ce15a8253753bc758d4fc59eb8c212ebfc75b 100644 (file)
@@ -105,14 +105,14 @@ Vector<Number>::Vector (const PETScWrappers::Vector &v)
                                        // and copy it
       PetscScalar *start_ptr;
       int ierr = VecGetArray (static_cast<const Vec&>(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<const Vec&>(v), &start_ptr);
-      AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr));
+      AssertThrow (ierr == 0, ExcPETScError(ierr));
     }
 }
 
@@ -653,14 +653,14 @@ Vector<Number>::operator = (const PETScWrappers::Vector &v)
                                        // and copy it
       PetscScalar *start_ptr;
       int ierr = VecGetArray (static_cast<const Vec&>(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<const Vec&>(v), &start_ptr);
-      AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr));
+      AssertThrow (ierr == 0, ExcPETScError(ierr));
     }
 
   return *this;

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.