[cig-commits] commit 1962 by bangerth to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Tue Oct 15 13:43:42 PDT 2013


Revision 1962

Be slightly more flexible with an assertion, as it triggers in a
couple of the tests.

U   trunk/aspect/source/geometry_model/box.cc


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=1962&peg=1962

Diff:
Modified: trunk/aspect/source/geometry_model/box.cc
===================================================================
--- trunk/aspect/source/geometry_model/box.cc	2013-10-15 18:12:11 UTC (rev 1961)
+++ trunk/aspect/source/geometry_model/box.cc	2013-10-15 20:43:28 UTC (rev 1962)
@@ -110,8 +110,8 @@
     {
       const double d = maximal_depth()-position(dim-1);
 
-      Assert (d >= 0, ExcInternalError());
-      Assert (d <= maximal_depth(), ExcInternalError());
+      Assert (d >= -1e-14*std::fabs(maximal_depth()), ExcInternalError());
+      Assert (d <= (1.+1e-14)*maximal_depth(), ExcInternalError());
 
       return d;
     }


More information about the CIG-COMMITS mailing list