fix error message for rs/rsw =1

This commit is contained in:
Tor Harald Sandve 2023-03-29 08:47:28 +02:00
parent a73f4078ef
commit 57c1e52019

View File

@ -195,7 +195,9 @@ calcCoeff( const int pvtRegionIdx,
// Currently we only support either gas in water or gas in oil
// not both
if (detR != 1 && detRw != 1) {
std::string msg = "only support " + std::to_string(detR) + " " + std::to_string(detR);
std::string msg = "We currently support either gas in water or gas in oil, not both."
"i.e. detR = " + std::to_string(detR) + " and detRw " + std::to_string(detRw) +
"can not both be different from 1";
throw std::range_error(msg);
}