]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor cleanups. 2308/head
authorLuca Heltai <luca.heltai@sissa.it>
Mon, 7 Mar 2016 13:27:19 +0000 (14:27 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Mon, 7 Mar 2016 13:39:06 +0000 (14:39 +0100)
source/grid/manifold_lib.cc

index bb5b91c8610d4330c11b5360990248c0db32b251..4740f4e65c6f77ec8926e31061f8db0d3a57c07e 100644 (file)
@@ -93,7 +93,7 @@ SphericalManifold<dim,spacedim>::push_forward(const Point<spacedim> &spherical_p
         break;
       }
       default:
-        Assert(false, ExcInternalError());
+        Assert(false, ExcNotImplemented());
       }
   return p+center;
 }
@@ -152,7 +152,7 @@ SphericalManifold<dim,spacedim>::push_forward_gradient(const Point<spacedim> &sp
         break;
       case 3:
       {
-        const double &phi= spherical_point[2];
+        const double phi= spherical_point[2];
         DX[0][0] =      sin(theta)*cos(phi);
         DX[0][1] =  rho*cos(theta)*cos(phi);
         DX[0][2] = -rho*sin(theta)*sin(phi);
@@ -164,8 +164,8 @@ SphericalManifold<dim,spacedim>::push_forward_gradient(const Point<spacedim> &sp
         DX[2][0] =      cos(theta);
         DX[2][1] = -rho*sin(theta);
         DX[2][2] = 0;
+        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.