Moved water phase check outside loop

This commit is contained in:
Svenn Tveit
2023-08-11 15:34:31 +02:00
parent 8b6a504874
commit b84837fc61
2 changed files with 9 additions and 6 deletions

View File

@@ -80,7 +80,8 @@ public:
protected:
bool co2store_or_h2store_() const
{
return ebos_simulator_.vanguard().eclState().runspec().co2Storage() || ebos_simulator_.vanguard().eclState().runspec().h2Storage();
const auto& rspec = ebos_simulator_.vanguard().eclState().runspec();
return rspec.co2Storage() || rspec.h2Storage();
}
int phaseIdx_() const