]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Restored a line that was mistakenly removed by me. 2492/head
authorLuca Heltai <luca.heltai@sissa.it>
Sat, 9 Apr 2016 12:26:18 +0000 (14:26 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 9 Apr 2016 12:26:18 +0000 (14:26 +0200)
source/grid/manifold.cc

index 64ab4cddb5d30073d9e8fd803053baf37267c849..9bb7241592ad605c61ffb4f2d1453101b88a00a6 100644 (file)
@@ -423,9 +423,10 @@ get_new_point (const Quadrature<spacedim> &quad) const
     if (periodicity[d] > 0)
       for (unsigned int i=0; i<surrounding_points.size(); ++i)
         {
-          Assert( (surrounding_points[i][d] < periodicity[d]+tolerance*periodicity.norm()) ||
-                  (surrounding_points[i][d] >= -tolerance*periodicity.norm()),
-                  ExcPeriodicBox(d, surrounding_points[i], periodicity, tolerance*periodicity.norm()));
+          minP[d] = std::min(minP[d], surrounding_points[i][d]);
+          Assert( (surrounding_points[i][d] < periodicity[d]+tolerance*periodicity[d]) ||
+                  (surrounding_points[i][d] >= -tolerance*periodicity[d]),
+                  ExcPeriodicBox(d, surrounding_points[i], periodicity, tolerance*periodicity[d]));
         }
 
   // compute the weighted average point, possibly taking into account periodicity

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.