mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Guard against erroneous use of initBlackoilSurfvol().
This commit is contained in:
parent
5140d99e60
commit
d4bb9c0611
@ -616,6 +616,10 @@ namespace Opm
|
|||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
State& state)
|
State& state)
|
||||||
{
|
{
|
||||||
|
if (props.numPhases() != 3) {
|
||||||
|
OPM_THROW(std::runtime_error, "initBlackoilSurfvol() can for now only be used with 3 phases.");
|
||||||
|
}
|
||||||
|
|
||||||
const std::vector<double>& rs = state.gasoilratio();
|
const std::vector<double>& rs = state.gasoilratio();
|
||||||
|
|
||||||
//make input for computation of the A matrix
|
//make input for computation of the A matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user