not throwing for numerical aquifers do not have connections

This commit is contained in:
Kai Bao
2022-10-27 13:23:07 +02:00
parent 120ef99510
commit 85c87fa29a

View File

@@ -90,8 +90,9 @@ namespace Opm {
const size_t aqu_id = pair.first;
const auto& aqu_cons = aquifer_connections.find(aqu_id);
if (aqu_cons == aquifer_connections.end()) {
const auto error = fmt::format("Numerical aquifer {} does not have any connections\n", aqu_id);
throw std::runtime_error(error);
const auto msg = fmt::format("Numerical aquifer {} does not have any connections\n", aqu_id);
OpmLog::warning(msg);
continue;
}
auto& aquifer = pair.second;
const auto& cons = aqu_cons->second;