From: Daniel Arndt Date: Thu, 29 Nov 2018 08:58:46 +0000 (+0100) Subject: Simplify cast to signed boundary_id X-Git-Tag: v9.1.0-rc1~521^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b65726c61c08b2efdffde06691af39a09b69718c;p=dealii.git Simplify cast to signed boundary_id --- 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'; }