From e30a90782ee6af6ba5d50133de361256562a2582 Mon Sep 17 00:00:00 2001 From: Dylan Cormet <cormet.dylan@gmail.com> Date: Mon, 12 May 2025 09:38:48 +0200 Subject: [PATCH] modify an error message --- src/scheme/HybridHLLRusanovEulerianCompositeSolver_v2.cpp | 4 ++-- src/scheme/HybridHLLcRusanovEulerianCompositeSolver_v2.cpp | 4 ++-- .../HybridRoeRusanovViscousFormEulerianCompositeSolver_v2.cpp | 4 ++-- .../HybridRusanovRoeViscousFormEulerianCompositeSolver_v2.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/scheme/HybridHLLRusanovEulerianCompositeSolver_v2.cpp b/src/scheme/HybridHLLRusanovEulerianCompositeSolver_v2.cpp index e0e57a68..86fcb885 100644 --- a/src/scheme/HybridHLLRusanovEulerianCompositeSolver_v2.cpp +++ b/src/scheme/HybridHLLRusanovEulerianCompositeSolver_v2.cpp @@ -2034,7 +2034,7 @@ hybridHLLRusanovEulerianCompositeSolver_v2( using Rd = TinyVector<Dimension>; if constexpr (Dimension == 1) { - throw NormalError("RusanovEulerianCompositeSolver v2 is not available in 1D"); + throw NormalError("This hybrid solver is not available in 1D"); } else { if constexpr (is_polygonal_mesh_v<MeshType>) { return HybridHLLRusanovEulerianCompositeSolver_v2<MeshType>{} @@ -2042,7 +2042,7 @@ hybridHLLRusanovEulerianCompositeSolver_v2( E_v->get<DiscreteFunctionP0<const double>>(), gamma, c_v->get<DiscreteFunctionP0<const double>>(), p_v->get<DiscreteFunctionP0<const double>>(), bc_descriptor_list, dt, check); } else { - throw NormalError("RusanovEulerianCompositeSolver v2 is only defined on polygonal meshes"); + throw NormalError("This hybrid solver is only defined on polygonal meshes"); } } }, diff --git a/src/scheme/HybridHLLcRusanovEulerianCompositeSolver_v2.cpp b/src/scheme/HybridHLLcRusanovEulerianCompositeSolver_v2.cpp index 36dae3df..c76bd5ce 100644 --- a/src/scheme/HybridHLLcRusanovEulerianCompositeSolver_v2.cpp +++ b/src/scheme/HybridHLLcRusanovEulerianCompositeSolver_v2.cpp @@ -2106,7 +2106,7 @@ hybridHLLcRusanovEulerianCompositeSolver_v2( using Rd = TinyVector<Dimension>; if constexpr (Dimension == 1) { - throw NormalError("Hybrid HLLc/Rusanov EulerianCompositeSolver v2 is not available in 1D"); + throw NormalError("This hybrid solver is not available in 1D"); } else { if constexpr (is_polygonal_mesh_v<MeshType>) { return HybridHLLcRusanovEulerianCompositeSolver_v2<MeshType>{} @@ -2114,7 +2114,7 @@ hybridHLLcRusanovEulerianCompositeSolver_v2( E_v->get<DiscreteFunctionP0<const double>>(), gamma, c_v->get<DiscreteFunctionP0<const double>>(), p_v->get<DiscreteFunctionP0<const double>>(), bc_descriptor_list, dt, check); } else { - throw NormalError("Hybrid HLLc/Rusanov EulerianCompositeSolver v2 is only defined on polygonal meshes"); + throw NormalError("This hybrid solver is only defined on polygonal meshes"); } } }, diff --git a/src/scheme/HybridRoeRusanovViscousFormEulerianCompositeSolver_v2.cpp b/src/scheme/HybridRoeRusanovViscousFormEulerianCompositeSolver_v2.cpp index 92f258ff..ebf9e32b 100644 --- a/src/scheme/HybridRoeRusanovViscousFormEulerianCompositeSolver_v2.cpp +++ b/src/scheme/HybridRoeRusanovViscousFormEulerianCompositeSolver_v2.cpp @@ -2482,7 +2482,7 @@ hybridRoeRusanovViscousFormEulerianCompositeSolver_v2( using Rd = TinyVector<Dimension>; if constexpr (Dimension == 1) { - throw NormalError("RoeViscousFormEulerianCompositeSolver v2 is not available in 1D"); + throw NormalError("This hybrid solver is not available in 1D"); } else { if constexpr (is_polygonal_mesh_v<MeshType>) { return HybridRoeRusanovViscousFormEulerianCompositeSolver_v2<MeshType>{} @@ -2491,7 +2491,7 @@ hybridRoeRusanovViscousFormEulerianCompositeSolver_v2( p_v->get<DiscreteFunctionP0<const double>>(), // degree, bc_descriptor_list, dt, check); } else { - throw NormalError("RoeViscousFormEulerianCompositeSolver v2 is only defined on polygonal meshes"); + throw NormalError("This hybrid solver is only defined on polygonal meshes"); } } }, diff --git a/src/scheme/HybridRusanovRoeViscousFormEulerianCompositeSolver_v2.cpp b/src/scheme/HybridRusanovRoeViscousFormEulerianCompositeSolver_v2.cpp index 3a01ea6c..90cf863c 100644 --- a/src/scheme/HybridRusanovRoeViscousFormEulerianCompositeSolver_v2.cpp +++ b/src/scheme/HybridRusanovRoeViscousFormEulerianCompositeSolver_v2.cpp @@ -2435,7 +2435,7 @@ hybridRusanovRoeViscousFormEulerianCompositeSolver_v2( using Rd = TinyVector<Dimension>; if constexpr (Dimension == 1) { - throw NormalError("RusanovEulerianCompositeSolver v2 is not available in 1D"); + throw NormalError("This hybrid solver is not available in 1D"); } else { if constexpr (is_polygonal_mesh_v<MeshType>) { return HybridRusanovRoeViscousFormEulerianCompositeSolver_v2<MeshType>{} @@ -2443,7 +2443,7 @@ hybridRusanovRoeViscousFormEulerianCompositeSolver_v2( E_v->get<DiscreteFunctionP0<const double>>(), gamma, c_v->get<DiscreteFunctionP0<const double>>(), p_v->get<DiscreteFunctionP0<const double>>(), bc_descriptor_list, dt, check); } else { - throw NormalError("RusanovEulerianCompositeSolver v2 is only defined on polygonal meshes"); + throw NormalError("This hybrid solver is only defined on polygonal meshes"); } } }, -- GitLab