From: bangerth Date: Tue, 10 Apr 2012 19:34:34 +0000 (+0000) Subject: Patch suggest by Jennifer Worthen: Add missing breaks in a switch statement. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88661d7678cfd2000afd7a0971e4c8c95f71631b;p=dealii-svn.git Patch suggest by Jennifer Worthen: Add missing breaks in a switch statement. git-svn-id: https://svn.dealii.org/trunk@25405 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/grid/tria_boundary_lib.cc b/deal.II/source/grid/tria_boundary_lib.cc index 76ef28c905..8d442b3e89 100644 --- a/deal.II/source/grid/tria_boundary_lib.cc +++ b/deal.II/source/grid/tria_boundary_lib.cc @@ -1141,6 +1141,7 @@ get_intermediate_points_on_line (const typename Triangulation::line_iterato // inner part of the shell. proceed // as in the base class HyperShellBoundary::get_intermediate_points_on_line (line, points); + break; } // in 3d, a line is a straight @@ -1150,28 +1151,29 @@ get_intermediate_points_on_line (const typename Triangulation::line_iterato // inner or outer sphere case 3: { - - if (((line->vertex(0)(0) == this->center(0)) - && - (line->vertex(1)(0) == this->center(0))) - && - !(((std::fabs (line->vertex(0).distance (this->center) - - inner_radius) < 1e-12 * outer_radius) - && - (std::fabs (line->vertex(1).distance (this->center) - - inner_radius) < 1e-12 * outer_radius)) - || - ((std::fabs (line->vertex(0).distance (this->center) - - outer_radius) < 1e-12 * outer_radius) - && - (std::fabs (line->vertex(1).distance (this->center) - - outer_radius) < 1e-12 * outer_radius)))) + if (((line->vertex(0)(0) == this->center(0)) + && + (line->vertex(1)(0) == this->center(0))) + && + !(((std::fabs (line->vertex(0).distance (this->center) + - inner_radius) < 1e-12 * outer_radius) + && + (std::fabs (line->vertex(1).distance (this->center) + - inner_radius) < 1e-12 * outer_radius)) + || + ((std::fabs (line->vertex(0).distance (this->center) + - outer_radius) < 1e-12 * outer_radius) + && + (std::fabs (line->vertex(1).distance (this->center) + - outer_radius) < 1e-12 * outer_radius)))) StraightBoundary::get_intermediate_points_on_line (line, points); else // otherwise we are on the outer or // inner part of the shell. proceed // as in the base class HyperShellBoundary::get_intermediate_points_on_line (line, points); + + break; } default: