From 45a2631b7fe3d9711b0f262f767cd453083d71ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 7 Jan 2015 10:16:13 +0100 Subject: [PATCH] Put reformatted error message in anonymous namespace. --- opm/core/tof/AnisotropicEikonal.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/opm/core/tof/AnisotropicEikonal.cpp b/opm/core/tof/AnisotropicEikonal.cpp index e3840d961..7a08ed568 100644 --- a/opm/core/tof/AnisotropicEikonal.cpp +++ b/opm/core/tof/AnisotropicEikonal.cpp @@ -431,14 +431,19 @@ namespace Opm #else // BOOST_HEAP_AVAILABLE is false +namespace { + const char* AnisotropicEikonal2derrmsg = + "\n********************************************************************************\n" + "This library has not been compiled with support for the AnisotropicEikonal2d\n" + "class, due to too old version of the boost libraries (Boost.Heap from boost\n" + "version 1.49 or newer is required.\n" + "To use this class you must recompile opm-core on a system with sufficiently new\n" + "version of the boost libraries." + "\n********************************************************************************\n"; +} + namespace Opm { - const char* AnisotropicEikonal2derrmsg = - "This library has not been compiled with support for the" - "AnisotropicEikonal2d class, due to too old version of the boost libraries. " - "Boost.Heap from boost version 1.49 or newer is required. " - "To use this class you must recompile opm-core on a system with sufficiently " - "new version of boost."; AnisotropicEikonal2d::AnisotropicEikonal2d(const UnstructuredGrid&) {