From: Wolfgang Bangerth Date: Thu, 26 Oct 2023 19:59:40 +0000 (-0600) Subject: Add a changelog entry. X-Git-Tag: relicensing~344^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c6db9e86c3b238fc39257160fc101c309129324;p=dealii.git Add a changelog entry. --- 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()); }