From 5be4f52d0f27f9832460ddb8bd4b5e15500313be Mon Sep 17 00:00:00 2001
From: Simon Sticko <simon@sticko.se>
Date: Fri, 22 Apr 2022 13:52:05 +0200
Subject: [PATCH] Add a documentation note to the generate()-function.

---
 include/deal.II/non_matching/quadrature_generator.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/deal.II/non_matching/quadrature_generator.h b/include/deal.II/non_matching/quadrature_generator.h
index 833df1d6cd..c973f85074 100644
--- a/include/deal.II/non_matching/quadrature_generator.h
+++ b/include/deal.II/non_matching/quadrature_generator.h
@@ -510,6 +510,9 @@ namespace NonMatching
     /**
      * Construct immersed quadratures rules based on the discrete level
      * set vector over the incoming cell.
+     *
+     * @note The cell needs to belong to the same triangulation as the one
+     * associated with the DoFHandler passed to the constructor.
      */
     void
     generate(const typename Triangulation<dim>::active_cell_iterator &cell);
@@ -563,6 +566,9 @@ namespace NonMatching
     /**
      * Construct immersed quadratures rules based on the discrete level
      * set vector over the incoming face described by cell and face index.
+     *
+     * @note The cell needs to belong to the same triangulation as the one
+     * associated with the DoFHandler passed to the constructor.
      */
     void
     generate(const typename Triangulation<dim>::active_cell_iterator &cell,
-- 
2.39.5