From 56c867dbfe3b0ebf32a3c59a64797a26ade542dd Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Mon, 2 Mar 2020 11:38:57 -0500 Subject: [PATCH] Fix documentation and indentation --- include/deal.II/grid/manifold_lib.h | 4 ++-- source/grid/manifold_lib.cc | 14 ++++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) 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 -- 2.39.5