]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assertion.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 24 Feb 2006 15:54:53 +0000 (15:54 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 24 Feb 2006 15:54:53 +0000 (15:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@12491 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/quadrature.cc

index 4a3eab27f80abce0586f34de69baa2b1bc27c8cd..63d4e677e705ee2f0cac58bf7757603d0d2d8f33 100644 (file)
@@ -163,6 +163,8 @@ Quadrature<dim>::Quadrature (const Quadrature<1> &q)
                quadrature_points (n_quadrature_points),
                weights (n_quadrature_points, 0.)
 {
+  Assert (dim <= 3, ExcNotImplemented());
+  
   const unsigned int n0 = q.n_quadrature_points;
   const unsigned int n1 = (dim>1) ? n0 : 1;
   const unsigned int n2 = (dim>2) ? n0 : 1;

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.