mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Merge pull request #3182 from bska/forward-well-potentials
Forward Potential Rates to Next Report Step
This commit is contained in:
commit
3faaab3c9f
@ -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