From 2c432e09af427aebb1a6593ea583d6982223d140 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 31 Mar 2020 12:33:28 +0200 Subject: [PATCH] Error when json file is requested for insufficient boost version. --- opm/simulators/linalg/setupPropertyTree_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/simulators/linalg/setupPropertyTree_impl.hpp b/opm/simulators/linalg/setupPropertyTree_impl.hpp index 9a53bbe98..8bed37ddf 100644 --- a/opm/simulators/linalg/setupPropertyTree_impl.hpp +++ b/opm/simulators/linalg/setupPropertyTree_impl.hpp @@ -47,6 +47,10 @@ setupPropertyTree(const FlowLinearSolverParameters& p) }else{ boost::property_tree::read_json(p.linear_solver_configuration_json_file_, prm); } +#else + OPM_THROW(std::invalid_argument, + "--linear-solver-configuration=file not supported with " + << "boost version. Needs versoin > 1.48."); #endif } else