From d8048ad3b066c3a597d87e2ee221a32012574237 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 15 Jan 2021 09:38:39 +0100 Subject: [PATCH] Improve assert p:f:T::create_triangulation() --- source/distributed/fully_distributed_tria.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/source/distributed/fully_distributed_tria.cc b/source/distributed/fully_distributed_tria.cc index 6bee001262..774ab21328 100644 --- a/source/distributed/fully_distributed_tria.cc +++ b/source/distributed/fully_distributed_tria.cc @@ -217,10 +217,20 @@ namespace parallel const std::vector> &cells, const SubCellData & subcelldata) { - AssertThrow( + Assert( currently_processing_create_triangulation_for_internal_usage, ExcMessage( - "Use the other create_triangulation() function to create triangulations of type parallel::fullydistributed::Triangulation.!")); + "You have called the method parallel::fullydistributed::Triangulation::create_triangulation() \n" + "that takes 3 arguments. If you have not called this function directly, \n" + "it might have been called via a function from the GridGenerator or GridIn \n" + "namespace. To be able to setup a fully-distributed Triangulation with these \n" + "utility functions nevertheless, please follow the following three steps:\n" + " 1) call the utility function for a (serial) Triangulation, \n" + " a parallel::shared::Triangulation, or a parallel::distributed::Triangulation object,\n" + " 2) use the functions TriangulationDescription::Utilities::create_description_from_triangulation() \n" + " or ::create_description_from_triangulation_in_groups() to create the \n" + " description of the local partition, and\n" + " 3) pass the created description to parallel::fullydistributed::Triangulation::create_triangulation().")); dealii::Triangulation::create_triangulation(vertices, cells, -- 2.39.5