Merge pull request #2137 from akva2/janitoring

add explicit defaults to quell warnings

Supersedes and closes #2134
This commit is contained in:
Bård Skaflestad 2020-11-26 11:47:56 +01:00 committed by GitHub
commit e98872a543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -971,6 +971,9 @@ inline quantity preferred_phase_productivty_index(const fn_args& args) {
case Opm::Phase::WATER:
return potential_rate<rt::productivity_index_water>(args);
default:
break;
}
throw std::invalid_argument {
@ -1018,6 +1021,9 @@ inline quantity connection_productivity_index(const fn_args& args) {
case Opm::Phase::WATER:
return { completion->rates.get(rt::productivity_index_water, 0.0),
rate_unit<rt::productivity_index_water>() };
default:
break;
}
throw std::invalid_argument {