Merge pull request #3934 from totto82/stopnocross

stopped wells where cross flow is not allowed are not added to the container
This commit is contained in:
Tor Harald Sandve 2022-06-07 10:36:07 +02:00 committed by GitHub
commit 147fe77779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -631,6 +631,12 @@ namespace Opm {
this->wellState().shutWell(w);
continue;
} else {
if (!well_ecl.getAllowCrossFlow()) {
// stopped wells where cross flow is not allowed
// are not added to the well container
this->wellState().shutWell(w);
continue;
}
// stopped wells are added to the container but marked as stopped
this->wellState().stopWell(w);
wellIsStopped = true;