StandardWellPrimaryVariables: use {fmt} to format error messages

This commit is contained in:
Arne Morten Kvarving 2022-12-20 12:42:42 +01:00
parent 4c3d933835
commit 59e5642678

View File

@ -696,7 +696,9 @@ checkFinite(DeferredLogger& deferred_logger) const
{
for (const Scalar v : value_) {
if (!isfinite(v))
OPM_DEFLOG_THROW(NumericalProblem, "Infinite primary variable after update from wellState well: " << well_.name(), deferred_logger);
OPM_DEFLOG_THROW(NumericalProblem,
"Infinite primary variable after update from wellState, well: " + well_.name(),
deferred_logger);
}
}