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:
commit
f6865c08dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user