mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Initialize rates/previous rates before well-test
This commit is contained in:
parent
763d25541a
commit
0756e2d1c1
@ -544,6 +544,14 @@ namespace Opm {
|
||||
well->setVFPProperties(vfp_properties_.get());
|
||||
well->setGuideRate(&guideRate_);
|
||||
|
||||
// initialize rates/previous rates to prevent zero fractions in vfp-interpolation
|
||||
if (well->isProducer()) {
|
||||
well->updateWellStateRates(ebosSimulator_, this->wellState(), deferred_logger);
|
||||
}
|
||||
if (well->isVFPActive(deferred_logger)) {
|
||||
well->setPrevSurfaceRates(this->wellState(), this->prevWellState());
|
||||
}
|
||||
|
||||
well->wellTesting(ebosSimulator_, simulationTime, this->wellState(), this->groupState(), wellTestState(), deferred_logger);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user