From bf265f5d1d2775509976f4e1b1e101a0858afc34 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 11 May 2020 16:54:08 -0400 Subject: [PATCH] doxygen: disable stuff in grid_generator.cc see #9914 --- source/grid/grid_generator.cc | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index c96b628a1d..5d7accd37c 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -32,6 +32,9 @@ DEAL_II_NAMESPACE_OPEN +// work around the problem that doxygen for some reason lists all template +// specializations in this file +#ifndef DOXYGEN namespace GridGenerator { @@ -1606,14 +1609,14 @@ namespace GridGenerator Assert(dim > 1, ExcNotImplemented()); Assert(dim < 4, ExcNotImplemented()); -#ifdef DEBUG +# ifdef DEBUG Tensor<2, dim> vector_matrix; for (unsigned int d = 0; d < dim; ++d) for (unsigned int c = 1; c <= dim; ++c) vector_matrix[c - 1][d] = vertices[c](d) - vertices[0](d); Assert(determinant(vector_matrix) > 0., ExcMessage("Vertices of simplex must form a right handed system")); -#endif +# endif // Set up the vertices by first copying into points. std::vector> points = vertices; @@ -2144,11 +2147,11 @@ namespace GridGenerator template void subdivided_parallelepiped(Triangulation &tria, -#ifndef _MSC_VER +# ifndef _MSC_VER const unsigned int (&n_subdivisions)[dim], -#else +# else const unsigned int *n_subdivisions, -#endif +# endif const Point (&corners)[dim], const bool colorize) { @@ -6061,12 +6064,12 @@ namespace GridGenerator Triangulation & result) { AssertDimension(dim, extents.size()); -#ifdef DEBUG +# ifdef DEBUG for (const auto &extent : extents) Assert(0 < extent, ExcMessage("The Triangulation must be copied at least one time in " "each coordinate dimension.")); -#endif +# endif const BoundingBox bbox(input.get_vertices()); const auto & min = bbox.get_boundary_points().first; const auto & max = bbox.get_boundary_points().second; @@ -6345,7 +6348,7 @@ namespace GridGenerator // mode) if (0 < manifold_priorities.size()) { -#ifdef DEBUG +# ifdef DEBUG // check that the provided manifold_priorities is valid std::vector sorted_manifold_priorities = manifold_priorities; @@ -6378,7 +6381,7 @@ namespace GridGenerator const std::string m = message.str(); Assert(false, ExcMessage(m)); } -#endif +# endif return manifold_priorities; } // otherwise use the default ranking: ascending order, but TFI manifolds @@ -7017,12 +7020,12 @@ namespace GridGenerator template