Forward Potential Rates to Next Report Step

These are used as part of calculating the BHP/THP when computing new
potential rates in models that feature VFP tables and must therefore
be properly initialised in the next report step's well state object.
This commit is contained in:
Bård Skaflestad 2021-04-26 14:33:45 +02:00
parent 42a6505cf1
commit 1f14c6ddef

View File

@ -264,6 +264,12 @@ namespace Opm
wellReservoirRates()[ idx ] = prevState->wellReservoirRates()[ oldidx ];
}
// Well potentials
for( int i=0, idx=newIndex*np, oldidx=oldIndex*np; i<np; ++i, ++idx, ++oldidx )
{
wellPotentials()[ idx ] = prevState->wellPotentials()[ oldidx ];
}
// perfPhaseRates
const int oldPerf_idx_beg = (*it).second[ 1 ];
const int num_perf_old_well = (*it).second[ 2 ];