]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use a different variable name to avoid hiding a member of the class (and
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Nov 2009 14:19:50 +0000 (14:19 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Nov 2009 14:19:50 +0000 (14:19 +0000)
generating a warning with Sun CC).

git-svn-id: https://svn.dealii.org/trunk@20120 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index da31afcb4545aa459a75015b1ce4bdac75f0bede..9608672a0a2c0427af106a89c585dd2288c775d5 100644 (file)
@@ -989,9 +989,10 @@ template <int dim, int spacedim>
 bool
 DataOutBase::Patch<dim,spacedim>::operator == (const Patch &patch) const
 {
-  const double eps=3e-16;
+//TODO: make tolerance relative  
+  const double epsilon=3e-16;
   for (unsigned int i=0; i<GeometryInfo<dim>::vertices_per_cell; ++i)
-    if (vertices[i].distance(patch.vertices[i]) > eps)
+    if (vertices[i].distance(patch.vertices[i]) > epsilon)
       return false;
 
   for (unsigned int i=0; i<GeometryInfo<dim>::faces_per_cell; ++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.