From: David Wells Date: Thu, 22 Oct 2020 14:36:54 +0000 (-0400) Subject: Make a template argument easier to read. X-Git-Tag: v9.3.0-rc1~983^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11083%2Fhead;p=dealii.git Make a template argument easier to read. clang-format gets confused here - lets just explicitly use a variable. --- diff --git a/source/grid/grid_out.cc b/source/grid/grid_out.cc index 16e1a7f5e8..2a6aa1cc8e 100644 --- a/source/grid/grid_out.cc +++ b/source/grid/grid_out.cc @@ -3223,14 +3223,13 @@ GridOut::write_vtk(const Triangulation &tria, for (const auto &face : faces) { out << face->n_vertices(); + constexpr int face_dim = dim > 1 ? dim - 1 : 1; for (const unsigned int i : face->vertex_indices()) { out << ' ' << face->vertex_index(GeometryInfo::vertices_per_face == face->n_vertices() ? - GeometryInfo < (dim > 1) ? - dim - 1 : - dim > ::ucd_to_deal[i] : + GeometryInfo::ucd_to_deal[i] : i); } out << '\n';