From 09826588b8671af039936751f228683a014eb280 Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 22 Oct 2020 10:36:54 -0400 Subject: [PATCH] Make a template argument easier to read. clang-format gets confused here - lets just explicitly use a variable. --- source/grid/grid_out.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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'; -- 2.39.5