Merge pull request #1002 from blattms/StandardWellsDense-with-no-wells

Make StandardWellsDense support cases with no wells.
This commit is contained in:
Atgeirr Flø Rasmussen 2017-01-09 12:33:37 +01:00 committed by GitHub
commit 58acc49991

View File

@ -1360,7 +1360,8 @@ enum WellVariablePositions {
const WellState& well_state,
DynamicListEconLimited& list_econ_limited) const
{
const int nw = wells_struct->number_of_wells;
// With no wells (on process) wells_struct is a null pointer
const int nw = (wells_struct)? wells_struct->number_of_wells : 0;
for (int w = 0; w < nw; ++w) {
// flag to check if the mim oil/gas rate limit is violated