NcpFlash: remove use of sstream
This commit is contained in:
parent
86d233ba96
commit
30b408c95f
@ -42,7 +42,6 @@
|
|||||||
#include <dune/common/version.hh>
|
#include <dune/common/version.hh>
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
@ -233,11 +232,13 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostringstream oss;
|
std::string msg = "NcpFlash solver failed: "
|
||||||
oss << "NcpFlash solver failed:"
|
"{c_alpha^kappa} = {";
|
||||||
<< " {c_alpha^kappa} = {" << globalMolarities << "}, "
|
for (const auto& v : globalMolarities)
|
||||||
<< " T = " << fluidState.temperature(/*phaseIdx=*/0);
|
msg += " " + std::to_string(getValue(v));
|
||||||
throw NumericalProblem(oss.str());
|
msg += " }, T = ";
|
||||||
|
msg += std::to_string(getValue(fluidState.temperature(/*phaseIdx=*/0)));
|
||||||
|
throw NumericalProblem(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user