Merge pull request #3196 from GitPaean/not_throw_no_connection_aquifer

not throwing for numerical aquifers do not have connections
This commit is contained in:
Bård Skaflestad 2022-10-27 16:07:30 +02:00 committed by GitHub
commit f6865c08dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;