From d0e4cabe272344018120d24c9c94ca2f9f41b0fa Mon Sep 17 00:00:00 2001
From: Dominik Kern <dominik.kern.ifgt@gmail.com>
Date: Sun, 15 Aug 2021 16:31:33 +0000
Subject: [PATCH] detail error message for unknown element

---
 .../Utils/LocalDataInitializer.h                               | 3 ++-
 .../HeatTransportBHE/LocalAssemblers/LocalDataInitializer.h    | 3 ++-
 ProcessLib/HydroMechanics/LocalDataInitializer.h               | 3 ++-
 .../LIE/HydroMechanics/LocalAssembler/LocalDataInitializer.h   | 3 ++-
 .../LIE/SmallDeformation/LocalAssembler/LocalDataInitializer.h | 3 ++-
 ProcessLib/RichardsMechanics/LocalDataInitializer.h            | 3 ++-
 ProcessLib/SmallDeformation/LocalDataInitializer.h             | 3 ++-
 ProcessLib/StokesFlow/LocalDataInitializer.h                   | 3 ++-
 ProcessLib/TH2M/LocalDataInitializer.h                         | 3 ++-
 ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h         | 3 ++-
 ProcessLib/ThermoRichardsMechanics/LocalDataInitializer.h      | 3 ++-
 ProcessLib/Utils/LocalDataInitializer.h                        | 3 ++-
 12 files changed, 24 insertions(+), 12 deletions(-)

diff --git a/ProcessLib/BoundaryConditionAndSourceTerm/Utils/LocalDataInitializer.h b/ProcessLib/BoundaryConditionAndSourceTerm/Utils/LocalDataInitializer.h
index 8ab6dd77725..0a7223d2005 100644
--- a/ProcessLib/BoundaryConditionAndSourceTerm/Utils/LocalDataInitializer.h
+++ b/ProcessLib/BoundaryConditionAndSourceTerm/Utils/LocalDataInitializer.h
@@ -326,7 +326,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/HeatTransportBHE/LocalAssemblers/LocalDataInitializer.h b/ProcessLib/HeatTransportBHE/LocalAssemblers/LocalDataInitializer.h
index cd7a8022409..bcc589ab75d 100644
--- a/ProcessLib/HeatTransportBHE/LocalAssemblers/LocalDataInitializer.h
+++ b/ProcessLib/HeatTransportBHE/LocalAssemblers/LocalDataInitializer.h
@@ -201,7 +201,8 @@ public:
                 "You are trying to build a local assembler for an unknown mesh "
                 "element type ({:s})."
                 " Maybe you have disabled this mesh element type in your build "
-                "configuration or this process requires higher order elements.",
+                "configuration, or a mesh element order does not match shape "
+                "function order given in the project file.",
                 type_idx.name());
         }
 
diff --git a/ProcessLib/HydroMechanics/LocalDataInitializer.h b/ProcessLib/HydroMechanics/LocalDataInitializer.h
index 47f7da36a7b..9fd2c93febe 100644
--- a/ProcessLib/HydroMechanics/LocalDataInitializer.h
+++ b/ProcessLib/HydroMechanics/LocalDataInitializer.h
@@ -288,7 +288,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/LIE/HydroMechanics/LocalAssembler/LocalDataInitializer.h b/ProcessLib/LIE/HydroMechanics/LocalAssembler/LocalDataInitializer.h
index 35628892881..4d6e3ccd590 100644
--- a/ProcessLib/LIE/HydroMechanics/LocalAssembler/LocalDataInitializer.h
+++ b/ProcessLib/LIE/HydroMechanics/LocalAssembler/LocalDataInitializer.h
@@ -220,7 +220,8 @@ public:
                 "You are trying to build a local assembler for an unknown mesh "
                 "element type ({:s})."
                 " Maybe you have disabled this mesh element type in your build "
-                "configuration or this process requires higher order elements.",
+                "configuration, or a mesh element order does not match shape "
+                "function order given in the project file.",
                 type_idx.name());
         }
 
diff --git a/ProcessLib/LIE/SmallDeformation/LocalAssembler/LocalDataInitializer.h b/ProcessLib/LIE/SmallDeformation/LocalAssembler/LocalDataInitializer.h
index f48ef1efec2..c083bfc5604 100644
--- a/ProcessLib/LIE/SmallDeformation/LocalAssembler/LocalDataInitializer.h
+++ b/ProcessLib/LIE/SmallDeformation/LocalAssembler/LocalDataInitializer.h
@@ -249,7 +249,8 @@ public:
                 "You are trying to build a local assembler for an unknown mesh "
                 "element type ({:s})."
                 " Maybe you have disabled this mesh element type in your build "
-                "configuration or this process requires higher order elements.",
+                "configuration, or a mesh element order does not match shape "
+                "function order given in the project file.",
                 type_idx.name());
         }
 
diff --git a/ProcessLib/RichardsMechanics/LocalDataInitializer.h b/ProcessLib/RichardsMechanics/LocalDataInitializer.h
index 4ef74865281..85e79e5e4ab 100644
--- a/ProcessLib/RichardsMechanics/LocalDataInitializer.h
+++ b/ProcessLib/RichardsMechanics/LocalDataInitializer.h
@@ -288,7 +288,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/SmallDeformation/LocalDataInitializer.h b/ProcessLib/SmallDeformation/LocalDataInitializer.h
index 591c27d5b18..3f98f6454df 100644
--- a/ProcessLib/SmallDeformation/LocalDataInitializer.h
+++ b/ProcessLib/SmallDeformation/LocalDataInitializer.h
@@ -228,7 +228,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration or this process requires higher order elements.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/StokesFlow/LocalDataInitializer.h b/ProcessLib/StokesFlow/LocalDataInitializer.h
index 48e1d0f5484..57d6dfbf01e 100644
--- a/ProcessLib/StokesFlow/LocalDataInitializer.h
+++ b/ProcessLib/StokesFlow/LocalDataInitializer.h
@@ -205,7 +205,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/TH2M/LocalDataInitializer.h b/ProcessLib/TH2M/LocalDataInitializer.h
index 816a3184e7d..e53b1caa055 100644
--- a/ProcessLib/TH2M/LocalDataInitializer.h
+++ b/ProcessLib/TH2M/LocalDataInitializer.h
@@ -288,7 +288,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h b/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h
index d1ef042cfa4..ea792fe77b6 100644
--- a/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h
+++ b/ProcessLib/ThermoHydroMechanics/LocalDataInitializer.h
@@ -288,7 +288,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/ThermoRichardsMechanics/LocalDataInitializer.h b/ProcessLib/ThermoRichardsMechanics/LocalDataInitializer.h
index 33bfc6ba690..a3c861706b1 100644
--- a/ProcessLib/ThermoRichardsMechanics/LocalDataInitializer.h
+++ b/ProcessLib/ThermoRichardsMechanics/LocalDataInitializer.h
@@ -288,7 +288,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
diff --git a/ProcessLib/Utils/LocalDataInitializer.h b/ProcessLib/Utils/LocalDataInitializer.h
index e5f18b1537c..a3245c284af 100644
--- a/ProcessLib/Utils/LocalDataInitializer.h
+++ b/ProcessLib/Utils/LocalDataInitializer.h
@@ -310,7 +310,8 @@ public:
             "You are trying to build a local assembler for an unknown mesh "
             "element type ({:s})."
             " Maybe you have disabled this mesh element type in your build "
-            "configuration.",
+            "configuration, or a mesh element order does not match shape "
+            "function order given in the project file.",
             type_idx.name());
     }
 
-- 
GitLab