WARN instead of THROW if completion is not found in the grid

Completions that are not found in the grid are ignored.
This commit is contained in:
Tor Harald Sandve 2015-09-22 13:51:06 +02:00
parent 8163137b2c
commit fb127aeb9a

View File

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