From: Rene Gassmoeller Date: Mon, 2 Mar 2020 16:38:57 +0000 (-0500) Subject: Fix documentation and indentation X-Git-Tag: v9.2.0-rc1~479^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56c867dbfe3b0ebf32a3c59a64797a26ade542dd;p=dealii.git Fix documentation and indentation --- diff --git a/include/deal.II/grid/manifold_lib.h b/include/deal.II/grid/manifold_lib.h index 1211f9c912..041e420f7b 100644 --- a/include/deal.II/grid/manifold_lib.h +++ b/include/deal.II/grid/manifold_lib.h @@ -111,7 +111,7 @@ public: push_forward_gradient(const Point &chart_point) const override; /** - * Return the (normalized) normal vector at the point @p p. + * @copydoc Manifold::normal_vector() */ virtual Tensor<1, spacedim> normal_vector( @@ -263,7 +263,7 @@ public: const Point &x2) const override; /** - * Return the (normalized) normal vector at the point @p p. + * @copydoc Manifold::normal_vector() */ virtual Tensor<1, spacedim> normal_vector( diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index 8f2b0a5a7f..fcfbe0a3be 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -325,7 +325,7 @@ PolarManifold::normal_vector( // (tangential to the sphere). In this case, the normal vector is // easy to compute since it is proportional to the vector from the // center to the point 'p'. - if (spherical_face_is_horizontal(face, center)) + if (spherical_face_is_horizontal(face, center)) { // So, if this is a "horizontal" face, then just compute the normal // vector as the one from the center to the point 'p', adequately @@ -340,7 +340,7 @@ PolarManifold::normal_vector( // base class. return Manifold::normal_vector(face, p); - return Tensor<1,spacedim>(); + return Tensor<1, spacedim>(); } @@ -494,7 +494,7 @@ SphericalManifold::normal_vector( // (tangential to the sphere). In this case, the normal vector is // easy to compute since it is proportional to the vector from the // center to the point 'p'. - if (spherical_face_is_horizontal(face, center)) + if (spherical_face_is_horizontal(face, center)) { // So, if this is a "horizontal" face, then just compute the normal // vector as the one from the center to the point 'p', adequately @@ -509,7 +509,7 @@ SphericalManifold::normal_vector( // base class. return Manifold::normal_vector(face, p); - return Tensor<1,spacedim>(); + return Tensor<1, spacedim>(); } @@ -547,12 +547,14 @@ SphericalManifold::get_normals_at_vertices( // (tangential to the sphere). In this case, the normal vector is // easy to compute since it is proportional to the vector from the // center to the point 'p'. - if (spherical_face_is_horizontal(face,center)) + if (spherical_face_is_horizontal(face, center)) { // So, if this is a "horizontal" face, then just compute the normal // vector as the one from the center to the point 'p', adequately // scaled. - for (unsigned int vertex = 0; vertex < GeometryInfo::vertices_per_face; ++vertex) + for (unsigned int vertex = 0; + vertex < GeometryInfo::vertices_per_face; + ++vertex) face_vertex_normals[vertex] = face->vertex(vertex) - center; } else