From: David Wells Date: Mon, 8 Mar 2021 19:59:33 +0000 (-0500) Subject: Fix a hardcoded number of lines. X-Git-Tag: v9.3.0-rc1~360^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11870%2Fhead;p=dealii.git Fix a hardcoded number of lines. --- diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index 467241a4a3..ed0e211ca3 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -1879,7 +1879,7 @@ TriaAccessor::set_all_boundary_ids( case 2: // for boundary quads also set // boundary_id of bounding lines - for (unsigned int i = 0; i < 4; ++i) + for (unsigned int i = 0; i < this->n_lines(); ++i) this->line(i)->set_boundary_id(boundary_ind); break;