mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge 0b9b124b4e
into 4b688e5945
This commit is contained in:
commit
fd1f3ac226
@ -233,7 +233,8 @@ namespace Opm {
|
||||
// the case of failed iterations
|
||||
this->commitWGState();
|
||||
|
||||
this->wellStructureChangedDynamically_ = false;
|
||||
//NB should check if anything is changed for now recreate all wells
|
||||
this->wellStructureChangedDynamically_ = true;
|
||||
}
|
||||
|
||||
|
||||
@ -362,7 +363,7 @@ namespace Opm {
|
||||
// structure change. That way we don't end up here in
|
||||
// subsequent calls to beginTimeStep() unless there's a new
|
||||
// dynamic change to the well structure during a report step.
|
||||
this->wellStructureChangedDynamically_ = false;
|
||||
//this->wellStructureChangedDynamically_ = false;
|
||||
}
|
||||
|
||||
this->resetWGState();
|
||||
@ -784,8 +785,10 @@ namespace Opm {
|
||||
DeferredLogger local_deferredLogger;
|
||||
|
||||
const int nw = this->numLocalWells();
|
||||
|
||||
well_container_.clear();
|
||||
if(this->wellStructureChangedDynamically_ == true){
|
||||
well_container_.clear();
|
||||
this->wellStructureChangedDynamically_ = false;
|
||||
}
|
||||
|
||||
if (nw > 0) {
|
||||
well_container_.reserve(nw);
|
||||
|
Loading…
Reference in New Issue
Block a user