]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor cleanups. 2315/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 7 Mar 2016 12:41:45 +0000 (06:41 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 7 Mar 2016 12:41:45 +0000 (06:41 -0600)
source/grid/manifold_lib.cc

index 8f3cd38306b32ef1eec9ff9762cc025c610dec12..cfe05206f9c3877bad85ce1f5e77b0ae304ba3aa 100644 (file)
@@ -86,12 +86,12 @@ SphericalManifold<dim,spacedim>::push_forward(const Point<spacedim> &spherical_p
         break;
       case 3:
       {
-        const double &phi= spherical_point[2];
+        const double phi= spherical_point[2];
         p[0] = rho*sin(theta)*cos(phi);
         p[1] = rho*sin(theta)*sin(phi);
         p[2] = rho*cos(theta);
+        break;
       }
-      break;
       default:
         Assert(false, ExcInternalError());
       }

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.