Allow for 2 phase initialization using EQUIL

This commit is contained in:
Tor Harald Sandve 2016-06-08 09:22:52 +02:00 committed by Liu Ming
parent 4c9d359638
commit 9bfb3f909e

View File

@ -528,7 +528,7 @@ namespace Opm
gor[c] = surface_vol[ c * numPhases + pu.phase_pos[Gas]] / surface_vol[ c * numPhases + pu.phase_pos[Oil]];
}
}
} else if (deck_->hasKeyword("EQUIL") && props.numPhases() == 3) {
} else if (deck_->hasKeyword("EQUIL")) {
// Which state class are we really using - what a f... mess?
state_.reset( new ReservoirState( Opm::UgGridHelpers::numCells(grid),
Opm::UgGridHelpers::numFaces(grid),