mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: rate converter must be initialized early if WELLPI is enabled
This commit is contained in:
parent
ae60f0b640
commit
cecedc1042
@ -240,6 +240,10 @@ namespace Opm {
|
||||
|
||||
this->report_step_starts_ = true;
|
||||
|
||||
|
||||
this->rateConverter_ = std::make_unique<RateConverterType>
|
||||
(this->phase_usage_, std::vector<int>(this->local_num_cells_, 0));
|
||||
|
||||
{
|
||||
// WELPI scaling runs at start of report step.
|
||||
const auto enableWellPIScaling = true;
|
||||
@ -254,8 +258,6 @@ namespace Opm {
|
||||
{
|
||||
// Create facility for calculating reservoir voidage volumes for
|
||||
// purpose of RESV controls.
|
||||
this->rateConverter_ = std::make_unique<RateConverterType>
|
||||
(this->phase_usage_, std::vector<int>(this->local_num_cells_, 0));
|
||||
this->rateConverter_->template defineState<ElementContext>(this->simulator_);
|
||||
|
||||
// Update VFP properties.
|
||||
|
Loading…
Reference in New Issue
Block a user