From 589b70ff26ce6ddb65310ad5f59afe0f29a0b572 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 31 Mar 2020 12:04:56 +0200 Subject: [PATCH] Correct errror message when json file is not specified. --- opm/simulators/linalg/setupPropertyTree_impl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opm/simulators/linalg/setupPropertyTree_impl.hpp b/opm/simulators/linalg/setupPropertyTree_impl.hpp index 7196d48dc..9a53bbe98 100644 --- a/opm/simulators/linalg/setupPropertyTree_impl.hpp +++ b/opm/simulators/linalg/setupPropertyTree_impl.hpp @@ -40,8 +40,10 @@ setupPropertyTree(const FlowLinearSolverParameters& p) if (p.linear_solver_configuration_ == "file") { #if BOOST_VERSION / 100 % 1000 > 48 if (p.linear_solver_configuration_json_file_ == "none"){ - OPM_THROW(std::invalid_argument, p.linear_solver_configuration_ << " is not a valid setting for --linear-solver-configuration." - << " Please use ilu0, cpr_trueimpes, or cpr_quasiimpes"); + OPM_THROW(std::invalid_argument, + "--linear-solver-configuration=file requires that a filename " + << "is passed with " + << "--linear-solver-configuration-json-file=filename."); }else{ boost::property_tree::read_json(p.linear_solver_configuration_json_file_, prm); }