From b65726c61c08b2efdffde06691af39a09b69718c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 29 Nov 2018 09:58:46 +0100 Subject: [PATCH] Simplify cast to signed boundary_id --- source/grid/grid_out.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/grid/grid_out.cc b/source/grid/grid_out.cc index 1b13dc9b7a..770fe4de71 100644 --- a/source/grid/grid_out.cc +++ b/source/grid/grid_out.cc @@ -947,13 +947,9 @@ GridOut::write_dx(const Triangulation &tria, // Little trick to get -1 for the interior for (unsigned int f = 0; f < GeometryInfo::faces_per_cell; ++f) { - const types::boundary_id boundary_id = - cell->face(f)->boundary_id(); out << ' ' - << (boundary_id == static_cast(-1) ? - -1 : - static_cast::type>( - boundary_id)); + << static_cast::type>( + cell->face(f)->boundary_id()); } out << '\n'; } -- 2.39.5