copy wellReservoirRates

This commit is contained in:
Tor Harald Sandve 2019-11-08 10:26:34 +01:00
parent 8cece8641e
commit a95459e6ff

View File

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