Merge pull request #1174 from totto82/FIX_flowsolvent

BUGFIX Don't try to compute effective properties for FIP if no solvent
This commit is contained in:
Tor Harald Sandve 2017-05-22 15:02:09 +02:00 committed by GitHub
commit 095c580933

View File

@ -1095,7 +1095,7 @@ namespace Opm {
computeFluidInPlace(const ReservoirState& x,
const std::vector<int>& fipnum)
{
if (b_eff_[0].size() == 0) {
if (has_solvent_ && is_miscible_ && b_eff_[0].size() == 0) {
// A hack to avoid trouble for initial fluid in place, due to usage of b_eff_.
WellState xw, xwdummy;
xw.init(&wells(), x, xwdummy);