From a39d7965e573e8d14f3a22b74d01823ecd1031bd Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 8 Jul 2018 11:15:16 +0200 Subject: [PATCH] Improve error messages --- source/grid/grid_generator.cc | 6 ++++-- source/grid/tria.cc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 3a55b2cf04..f994bf8ecd 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -3797,9 +3797,11 @@ namespace GridGenerator const bool copy_manifold_ids) { Assert(triangulation_1.n_levels() == 1, - ExcMessage("The input triangulations must be coarse meshes.")); + ExcMessage("The input triangulations must be non-empty " + "and must not be refined.")); Assert(triangulation_2.n_levels() == 1, - ExcMessage("The input triangulations must be coarse meshes.")); + ExcMessage("The input triangulations must be non-empty " + "and must not be refined.")); // get the union of the set of vertices std::vector> vertices = triangulation_1.get_vertices(); diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 90a1bf268f..182ea86718 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -2104,7 +2104,7 @@ namespace internal AssertThrow( (n_adj_cells >= 1) && (n_adj_cells <= 2), ExcMessage("You have a line in your triangulation at which " - "more than two cells come together. " + "more than two cells come together." "\n\n" "This is not currently supported because the " "Triangulation class makes the assumption that " -- 2.39.5