]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a changelog entry.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 26 Oct 2023 19:59:40 +0000 (13:59 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2023 23:01:02 +0000 (17:01 -0600)
doc/news/changes/minor/20231026Bangerth [new file with mode: 0644]
source/fe/fe.cc

diff --git a/doc/news/changes/minor/20231026Bangerth b/doc/news/changes/minor/20231026Bangerth
new file mode 100644 (file)
index 0000000..4e55b63
--- /dev/null
@@ -0,0 +1,4 @@
+New: The new function RefinementCase::all_refinement_cases() returns
+an array of all possible refinement options of a cell.
+<br>
+(Wolfgang Bangerth, 2023/10/26)
index a1ca2bac05be45c312e40c55b2fd51197a889a33..2e3f053a6bca2a2eb742453bb8d8f2c4e67cb781 100644 (file)
@@ -139,12 +139,12 @@ FiniteElement<dim, spacedim>::FiniteElement(
        RefinementCase<dim>::all_refinement_cases())
     if (ref_case != RefinementCase<dim>::no_refinement)
       {
-        prolongation[ref - 1].resize(GeometryInfo<dim>::n_children(
-                                       RefinementCase<dim>(ref)),
-                                     FullMatrix<double>());
-        restriction[ref - 1].resize(GeometryInfo<dim>::n_children(
-                                      RefinementCase<dim>(ref)),
-                                    FullMatrix<double>());
+        prolongation[ref_case - 1].resize(GeometryInfo<dim>::n_children(
+                                            RefinementCase<dim>(ref_case)),
+                                          FullMatrix<double>());
+        restriction[ref_case - 1].resize(GeometryInfo<dim>::n_children(
+                                           RefinementCase<dim>(ref_case)),
+                                         FullMatrix<double>());
       }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.