mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
Only compute the sum of B for one phase and not over all phases.
This commit is contained in:
parent
f5ed31d128
commit
cb9048d928
@ -1900,7 +1900,7 @@ namespace {
|
||||
for(int idx=0; idx<MaxNumPhases; ++idx)
|
||||
{
|
||||
if (active_[idx]) {
|
||||
B_avg[pu.phase_pos[idx]] = B.sum()/nc;
|
||||
B_avg[pu.phase_pos[idx]] = B.col(pu.phase_pos[idx]).sum()/nc;
|
||||
maxCoeff[pu.phase_pos[idx]]=tempV.col(pu.phase_pos[idx]).maxCoeff();
|
||||
R_sum[pu.phase_pos[idx]] = R.col(pu.phase_pos[idx]).sum();
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user