From 6bda43589a278cb5e2a20ce0698744341c9ab394 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Wed, 13 Mar 2019 12:26:27 -0600
Subject: [PATCH] Improve the error text of an assertion.

---
 include/deal.II/numerics/vector_tools.templates.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h
index aebdafb337..5e024874eb 100644
--- a/include/deal.II/numerics/vector_tools.templates.h
+++ b/include/deal.II/numerics/vector_tools.templates.h
@@ -2947,7 +2947,12 @@ namespace VectorTools
                             ExcMessage(
                               "This function can only deal with requested boundary "
                               "values that correspond to primitive (scalar) base "
-                              "elements"));
+                              "elements. You may want to look up in the deal.II "
+                              "glossary what the term 'primitive' means."
+                              "\n\n"
+                              "There are alternative boundary value interpolation "
+                              "functions in namespace 'VectorTools' that you can "
+                              "use for non-primitive finite elements."));
                     }
 
                   const typename DoFHandlerType<dim, spacedim>::face_iterator
-- 
2.39.5