From: Luca Heltai Date: Sat, 9 Apr 2016 12:26:18 +0000 (+0200) Subject: Restored a line that was mistakenly removed by me. X-Git-Tag: v8.5.0-rc1~1120^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cec043c1e4b5f6462115a0f33773d104631a60b2;p=dealii.git Restored a line that was mistakenly removed by me. --- diff --git a/source/grid/manifold.cc b/source/grid/manifold.cc index 64ab4cddb5..9bb7241592 100644 --- a/source/grid/manifold.cc +++ b/source/grid/manifold.cc @@ -423,9 +423,10 @@ get_new_point (const Quadrature &quad) const if (periodicity[d] > 0) for (unsigned int i=0; i= -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