From 7fc975d8c9e80118db83e5f944df61cb067114cb Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Thu, 13 Jun 2019 08:58:29 +0200
Subject: [PATCH] [ParameterLib] Improve error message.

---
 ParameterLib/Parameter.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ParameterLib/Parameter.cpp b/ParameterLib/Parameter.cpp
index cfb170703c2..21c17893b3c 100644
--- a/ParameterLib/Parameter.cpp
+++ b/ParameterLib/Parameter.cpp
@@ -101,6 +101,11 @@ boost::optional<std::string> isDefinedOnSameMesh(ParameterBase const& parameter,
 
     return "The parameter's domain of definition mesh '" +
            parameter.mesh()->getName() + "' differs from the used mesh '" +
-           mesh.getName() + "'. Both meshes must be equal.";
+           mesh.getName() +
+           "'. The same mesh (the same name) has to be referenced in the "
+           "project file. Possible reasons are:\n - the parameter used for the "
+           "initial condition is not defined on the bulk mesh,\n - the "
+           "parameter's domain of definition mesh differs from the boundary "
+           "condition or source term domain of definition mesh.";
 }
 }  // namespace ParameterLib
-- 
GitLab