PengRobinson: remove use of sstream
This commit is contained in:
parent
30b408c95f
commit
55c5bc68d5
@ -37,7 +37,7 @@
|
|||||||
#include <opm/material/common/PolynomialUtils.hpp>
|
#include <opm/material/common/PolynomialUtils.hpp>
|
||||||
|
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <sstream>
|
#include <string>
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
@ -381,9 +381,11 @@ protected:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostringstream oss;
|
const std::string msg =
|
||||||
oss << "Could not determine the critical point for a=" << a << ", b=" << b;
|
"Could not determine the critical point for a="
|
||||||
throw NumericalProblem(oss.str());
|
+ std::to_string(getValue(a))
|
||||||
|
+ ", b=" + std::to_string(getValue(b));
|
||||||
|
throw NumericalProblem(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (findExtrema_(minVm, maxVm, minP, maxP, a, b, T - delta)) {
|
if (findExtrema_(minVm, maxVm, minP, maxP, a, b, T - delta)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user