From c7b9d67037d1dcb3b68e9c9c0084642f0ff488e0 Mon Sep 17 00:00:00 2001 From: Wenyu Lei Date: Sat, 16 Jan 2021 16:10:23 +0100 Subject: [PATCH] change 4 to this->n_lines() --- include/deal.II/grid/tria_accessor.templates.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index 23939b0b50..055cb2b891 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -1959,8 +1959,8 @@ TriaAccessor::set_all_manifold_ids( break; case 2: - // for quads also set manifold_id of bounding lines - for (unsigned int i = 0; i < 4; ++i) + // for quads/simplices also set manifold_id of bounding lines + for (unsigned int i = 0; i < this->n_lines(); ++i) this->line(i)->set_manifold_id(manifold_ind); break; default: -- 2.39.5