From: Luca Heltai Date: Fri, 10 May 2019 08:56:50 +0000 (+0200) Subject: Use the new constructor for Mapping::get_bounding_box() X-Git-Tag: v9.1.0-rc1~70^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ea5123aff7150100260c597f4a63fdec49f1089;p=dealii.git Use the new constructor for Mapping::get_bounding_box() --- diff --git a/source/fe/mapping.cc b/source/fe/mapping.cc index 45a1371568..3716dac5d1 100644 --- a/source/fe/mapping.cc +++ b/source/fe/mapping.cc @@ -69,17 +69,7 @@ Mapping::get_bounding_box( if (preserves_vertex_locations()) return cell->bounding_box(); else - { - const auto vertices = get_vertices(cell); - Point p0 = vertices[0], p1 = vertices[0]; - for (unsigned int j = 1; j < vertices.size(); ++j) - for (unsigned int d = 0; d < spacedim; ++d) - { - p0[d] = std::min(p0[d], vertices[j][d]); - p1[d] = std::max(p1[d], vertices[j][d]); - } - return BoundingBox({p0, p1}); - } + return BoundingBox(get_vertices(cell)); }