Merge pull request #888 from totto82/avoid_throw_wellManager

WARN instead of THROW if completion is not found in the grid
This commit is contained in:
Atgeirr Flø Rasmussen 2015-09-28 10:02:06 +02:00
commit 061b283a03

View File

@ -159,8 +159,9 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
}
else
{
OPM_THROW(std::runtime_error, "Cell with i,j,k indices " << i << ' ' << j << ' '
<< k << " not found in grid (well = " << well->name() << ')');
OPM_MESSAGE("****Warning: Cell with i,j,k indices " << i << ' ' << j << ' '
<< k << " not found in grid. The completion will be igored (well = "
<< well->name() << ')');
}
}
else