From: Magdalena Schreter <magdalena.schreter@tum.de>
Date: Thu, 2 Nov 2023 19:57:47 +0000 (+0100)
Subject: GridTools::exchange_cell_data -- extend assert message
X-Git-Tag: relicensing~320^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16236%2Fhead;p=dealii.git

GridTools::exchange_cell_data -- extend assert message
---

diff --git a/include/deal.II/grid/grid_tools.h b/include/deal.II/grid/grid_tools.h
index 8f8eb1c09c..80e6c4104e 100644
--- a/include/deal.II/grid/grid_tools.h
+++ b/include/deal.II/grid/grid_tools.h
@@ -3382,7 +3382,12 @@ namespace GridTools
               "operate on a single layer of ghost cells. However, you have "
               "given a Triangulation object of type "
               "parallel::shared::Triangulation without artificial cells "
-              "resulting in arbitrary numbers of ghost layers."));
+              "resulting in an arbitrary number of ghost layers. "
+              "To use this function for a Triangulation object of type "
+              "parallel::shared::Triangulation, make sure to create the "
+              "Triangulation object with allow_artificial_cells set to true. "
+              "This results in a parallel::shared::Triangulation with only "
+              "a single layer of ghost cells."));
         }
 
       // build list of cells to request for each neighbor