]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Include test of the quadrature points (dim==1) being sorted in ascending order.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Jan 2001 12:30:03 +0000 (12:30 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Jan 2001 12:30:03 +0000 (12:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@3753 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/quadrature_test.cc

index 402d048b8c5761c66d66154c052dd8fa6689fe83..526a270a37769b41413af47187e3196ac4f36eaa 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -85,6 +85,20 @@ check_cells (vector<Quadrature<dim>*>& quadratures)
 //      deallog << " (Int " << quadrature_int << ',' << exact_int << ")";
       deallog << " is exact for polynomials of degree " << i-1 << endl;
 
+      if (dim==1)
+       {
+                                          // check the ordering of
+                                          // the quadrature points
+         bool in_order=true;
+         for (unsigned int x=1; x<quadrature.n_quadrature_points; ++x)
+           {
+             if (points[x](0)<=points[x-1](0))
+               in_order=false;
+           }
+         if (!in_order)
+           for (unsigned int x=0; x<quadrature.n_quadrature_points; ++x)
+             deallog << points[x] << endl;
+       }
     }  
 }
 

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.