]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix simple problem.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Jul 1998 11:39:46 +0000 (11:39 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Jul 1998 11:39:46 +0000 (11:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@430 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/quadrature.cc

index 957bda9c6e3690b262adfd6ecd112eec2a4c9d75..2e1615ba3c5cb8b612c1699b4df8a3de41a04aa1 100644 (file)
@@ -48,7 +48,10 @@ Quadrature<dim>::Quadrature (const Quadrature<dim-1> &q1,
   double sum = 0;
   for (unsigned int i=0; i<n_quadrature_points; ++i)
     sum += weights[i];
-  Assert (sum==1, ExcInternalError());
+                                  // we cant guarantee the sum of weights
+                                  // to be exactly one, but it should be
+                                  // near that. 
+  Assert ((sum>0.999999) && (sum<1.000001), ExcInternalError());
 #endif
 };
 

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.