PengRobinson: remove use of sstream

This commit is contained in:
Arne Morten Kvarving 2023-01-02 08:46:32 +01:00
parent 30b408c95f
commit 55c5bc68d5

View File

@ -37,7 +37,7 @@
#include <opm/material/common/PolynomialUtils.hpp>
#include <csignal>
#include <sstream>
#include <string>
namespace Opm {
@ -381,9 +381,11 @@ protected:
return;
}
std::ostringstream oss;
oss << "Could not determine the critical point for a=" << a << ", b=" << b;
throw NumericalProblem(oss.str());
const std::string msg =
"Could not determine the critical point for a="
+ std::to_string(getValue(a))
+ ", b=" + std::to_string(getValue(b));
throw NumericalProblem(msg);
}
if (findExtrema_(minVm, maxVm, minP, maxP, a, b, T - delta)) {