]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve error message.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 29 Oct 2009 05:18:04 +0000 (05:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 29 Oct 2009 05:18:04 +0000 (05:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@20006 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/petsc_parallel_vector.cc

index 7945fadb6ae657549848ce656ba4d9f120a23499..31e951f63d2b9774ad34c971945594306e57d65c 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2006, 2008 by the deal.II authors
+//    Copyright (C) 2004, 2006, 2008, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -165,7 +165,8 @@ namespace PETScWrappers
                         &vector);
       AssertThrow (ierr == 0, ExcPETScError(ierr));
 
-      Assert (size() == n, ExcInternalError());
+      Assert (size() == n,
+             ExcDimensionMismatch (size(), n));
     }
 
   }

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.