mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
AdaptiveTimeStepping: use fmt for formatting
This commit is contained in:
parent
f0cb0595d1
commit
0465d3f0af
@ -352,13 +352,10 @@ step(const SimulatorTimer& simulatorTimer,
|
||||
} else {
|
||||
substepTimer.provideTimeStepEstimate(dt);
|
||||
if (solverVerbose_) {
|
||||
std::string msg;
|
||||
msg = "\nProblematic well(s) were shut: ";
|
||||
for (const auto& well : shut_wells) {
|
||||
msg += well;
|
||||
msg += " ";
|
||||
}
|
||||
msg += "(retrying timestep)\n";
|
||||
const std::string msg =
|
||||
fmt::format("\nProblematic well(s) were shut: {}"
|
||||
"(retrying timestep)\n",
|
||||
fmt::join(shut_wells, " "));
|
||||
OpmLog::problem(msg);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user