From ac9a89314154404591c8e59ca7da294783325886 Mon Sep 17 00:00:00 2001
From: Marc Fehling <mafehling.git@gmail.com>
Date: Wed, 30 Aug 2023 18:31:11 -0600
Subject: [PATCH] Added one assertion to setup_line_to_cell.

---
 include/deal.II/matrix_free/hanging_nodes_internal.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/deal.II/matrix_free/hanging_nodes_internal.h b/include/deal.II/matrix_free/hanging_nodes_internal.h
index cc770bc39c..03b6596820 100644
--- a/include/deal.II/matrix_free/hanging_nodes_internal.h
+++ b/include/deal.II/matrix_free/hanging_nodes_internal.h
@@ -474,6 +474,8 @@ namespace internal
                   const unsigned int child_line_idx =
                     child->line_index(neighbor_line);
 
+                  Assert(child->is_active(), ExcInternalError());
+
                   // Now add all active cells
                   for (const auto &cl : line_to_cells[line_idx])
                     line_to_cells[child_line_idx].push_back(cl);
-- 
2.39.5