]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace a C assert() by our own Assert().
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Jan 2009 00:13:41 +0000 (00:13 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Jan 2009 00:13:41 +0000 (00:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@18231 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/block_vector_copy.cc

index 617e6160184923f7bcf370a9aa9ff1a61a830ec2..35d7dd453a1ad8dfe734ea2b1b67c0dea8da9c0e 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2008 by the deal.II authors
+//    Copyright (C) 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
@@ -31,7 +31,8 @@ void test ()
     partition[i] = 3;
 
   dealii::BlockVector<double>  b(partition);
-  assert (b.n_blocks() == partition.size());
+  Assert (b.n_blocks() == partition.size(),
+         ExcInternalError());
 
   unsigned int                 size = 0;
   for (unsigned int i = 0; i < b.n_blocks(); ++i)

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.