From: Wolfgang Bangerth Date: Thu, 7 Jul 2016 21:45:18 +0000 (-0500) Subject: Minor cleanups. X-Git-Tag: v8.5.0-rc1~909^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23869981f0a3909d8c8ab7357fc050c042e0734d;p=dealii.git Minor cleanups. In particular, make some variables 'const'. Also guard sequences of 'if (dim=...)' against unforeseen cases. --- diff --git a/source/fe/mapping_manifold.cc b/source/fe/mapping_manifold.cc index 9bdb462c85..e21a20c1a9 100644 --- a/source/fe/mapping_manifold.cc +++ b/source/fe/mapping_manifold.cc @@ -444,7 +444,7 @@ namespace internal data.cell_manifold_quadrature_weights[point+data_set])); // To compute the Jacobian, we choose dim points aligned - // with with the dim reference axes, which are still in the + // with the dim reference axes, which are still in the // given cell, and ask for the tangent vector in these // directions. Choosing the points is somewhat arbitrary, // so we try to be smart and we pick points which are @@ -461,7 +461,7 @@ namespace internal // In the length L, we store also the direction sign, // which is positive, if the coordinate is < .5, - double L = pi > .5 ? -pi: 1-pi; + const double L = pi > .5 ? -pi: 1-pi; // Get the weights to compute the np point in real space for (unsigned int j=0; j::vertices_per_cell; ++j) @@ -471,7 +471,7 @@ namespace internal data.manifold->get_new_point(Quadrature(data.vertices, data.vertex_weights)); - Tensor<1,spacedim> T = data.manifold->get_tangent_vector(P, NP); + const Tensor<1,spacedim> T = data.manifold->get_tangent_vector(P, NP); for (unsigned int d=0; d DX_t = data.contravariant[point].transpose(); @@ -756,6 +760,12 @@ namespace internal // and the cell normal: output_data.boundary_forms[point] = cross_product_3d(data.aux[0][point], cell_normal); + + break; + } + + default: + Assert (false, ExcNotImplemented()); } } }