MultisegmentWell: avoid use of sstream

This commit is contained in:
Arne Morten Kvarving 2023-01-02 15:24:35 +01:00
parent 99e5dab134
commit ff0f9c05f0

View File

@ -83,8 +83,9 @@ namespace Opm
} }
if(this->rsRvInj() > 0) { if(this->rsRvInj() > 0) {
OPM_THROW(std::runtime_error, "dissolved gas/ vapporized oil in injected oil/gas not supported by multisegment well yet." OPM_THROW(std::runtime_error,
<< " \n See (WCONINJE item 10 / WCONHIST item 8)"); "dissolved gas/ vapporized oil in injected oil/gas not supported by multisegment well yet."
" \n See (WCONINJE item 10 / WCONHIST item 8)");
} }
if constexpr (!Indices::oilEnabled && Indices::numPhases > 1) { if constexpr (!Indices::oilEnabled && Indices::numPhases > 1) {
OPM_THROW(std::runtime_error, "water + gas case not supported by multisegment well yet"); OPM_THROW(std::runtime_error, "water + gas case not supported by multisegment well yet");