Merge pull request #708 from totto82/fix_hydrocarbonstate

Adds has_disgas and has_vapoil flags to hydrocarbonstate initialization
This commit is contained in:
Atgeirr Flø Rasmussen
2016-06-07 11:38:27 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -557,7 +557,9 @@ namespace Opm
props.capPress(numCells, state_->saturation().data(), cells.data(), pc.data(), nullptr);
fluidprops_->setSwatInitScaling(state_->saturation(), pc);
}
initHydroCarbonState(*state_, pu, Opm::UgGridHelpers::numCells(grid));
initHydroCarbonState(*state_, pu, Opm::UgGridHelpers::numCells(grid), deck_->hasKeyword("DISGAS"), deck_->hasKeyword("VAPOIL"));
}