mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
42a6505cf1
commit
1f14c6ddef
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user