mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -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)
|
for(int idx=0; idx<MaxNumPhases; ++idx)
|
||||||
{
|
{
|
||||||
if (active_[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();
|
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();
|
R_sum[pu.phase_pos[idx]] = R.col(pu.phase_pos[idx]).sum();
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user