From d4c69c994e253d36e37ddb03502f44b90eedad16 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 29 Feb 2016 15:09:04 -0600 Subject: [PATCH] Avoid a warning about a dangling 'else'. --- source/grid/manifold.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/grid/manifold.cc b/source/grid/manifold.cc index 4aaf6d3aa0..42f2e8c281 100644 --- a/source/grid/manifold.cc +++ b/source/grid/manifold.cc @@ -305,10 +305,12 @@ FlatManifold::get_tangent_vector (const Point &x1, // around (i.e., via the periodic box) for (unsigned int d=0; d tolerance) - if (direction[d] < -periodicity[d]/2) - direction[d] += periodicity[d]; - else if (direction[d] > periodicity[d]/2) - direction[d] -= periodicity[d]; + { + if (direction[d] < -periodicity[d]/2) + direction[d] += periodicity[d]; + else if (direction[d] > periodicity[d]/2) + direction[d] -= periodicity[d]; + } return direction; } -- 2.39.5