Merge pull request #3182 from bska/forward-well-potentials

Forward Potential Rates to Next Report Step
This commit is contained in:
Bård Skaflestad 2021-04-27 09:26:52 +02:00 committed by GitHub
commit 3faaab3c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ];