From 66a8551f71bf85d198598b827e78a436f0741a18 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Fri, 26 Feb 2021 16:01:43 +0100 Subject: [PATCH] Use fmt::format() for two messages --- ebos/eclproblem.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index eba3a2d3e..5d3212b2d 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -1376,7 +1376,7 @@ public: wells_string += matching_wells[iw] + ", "; wells_string += matching_wells.back(); } - std::string msg = "The action: " + action->name() + " evaluated to true at " + ts + " wells: " + wells_string; + std::string msg = fmt::format("The action: {} evaluated to true at {} wells: {}", action->name(), ts, wells_string); Opm::OpmLog::info(msg); const auto& wellpi = this->fetchWellPI(reportStep, *action, schedule, matching_wells); @@ -1390,7 +1390,7 @@ public: this->wellModel_.updateEclWell(reportStep, wname); } } else { - std::string msg = "The action: " + action->name() + " evaluated to false at " + ts; + std::string msg = fmt::format("The action: {} evaluated to false at {}", action->name(), ts); Opm::OpmLog::info(msg); } }