]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Patch suggest by Jennifer Worthen: Add missing breaks in a switch statement.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Apr 2012 19:34:34 +0000 (19:34 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Apr 2012 19:34:34 +0000 (19:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@25405 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/tria_boundary_lib.cc

index 76ef28c905bedb13a8256d011d447b7b8d96b518..8d442b3e890965e57f5fff8a96b4c6506d9f6757 100644 (file)
@@ -1141,6 +1141,7 @@ get_intermediate_points_on_line (const typename Triangulation<dim>::line_iterato
                                            // inner part of the shell. proceed
                                            // as in the base class
           HyperShellBoundary<dim>::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<dim>::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<dim>::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<dim>::get_intermediate_points_on_line (line, points);
+
+       break;
       }
 
       default:

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.