From fb127aeb9ac29f1ada1385caf00a9d133eea1bbe Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 22 Sep 2015 13:51:06 +0200 Subject: [PATCH] WARN instead of THROW if completion is not found in the grid Completions that are not found in the grid are ignored. --- opm/core/wells/WellsManager_impl.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opm/core/wells/WellsManager_impl.hpp b/opm/core/wells/WellsManager_impl.hpp index 73b026bcf..f289720e7 100644 --- a/opm/core/wells/WellsManager_impl.hpp +++ b/opm/core/wells/WellsManager_impl.hpp @@ -159,8 +159,9 @@ void WellsManager::createWellsFromSpecs(std::vector& 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