From 9c6db9e86c3b238fc39257160fc101c309129324 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 26 Oct 2023 13:59:40 -0600 Subject: [PATCH] Add a changelog entry. --- doc/news/changes/minor/20231026Bangerth | 4 ++++ source/fe/fe.cc | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 doc/news/changes/minor/20231026Bangerth diff --git a/doc/news/changes/minor/20231026Bangerth b/doc/news/changes/minor/20231026Bangerth new file mode 100644 index 0000000000..4e55b634ac --- /dev/null +++ b/doc/news/changes/minor/20231026Bangerth @@ -0,0 +1,4 @@ +New: The new function RefinementCase::all_refinement_cases() returns +an array of all possible refinement options of a cell. +
+(Wolfgang Bangerth, 2023/10/26) diff --git a/source/fe/fe.cc b/source/fe/fe.cc index a1ca2bac05..2e3f053a6b 100644 --- a/source/fe/fe.cc +++ b/source/fe/fe.cc @@ -139,12 +139,12 @@ FiniteElement::FiniteElement( RefinementCase::all_refinement_cases()) if (ref_case != RefinementCase::no_refinement) { - prolongation[ref - 1].resize(GeometryInfo::n_children( - RefinementCase(ref)), - FullMatrix()); - restriction[ref - 1].resize(GeometryInfo::n_children( - RefinementCase(ref)), - FullMatrix()); + prolongation[ref_case - 1].resize(GeometryInfo::n_children( + RefinementCase(ref_case)), + FullMatrix()); + restriction[ref_case - 1].resize(GeometryInfo::n_children( + RefinementCase(ref_case)), + FullMatrix()); } -- 2.39.5