Reference per-cell fluid matrix when calculating phase densities.

This change repeats change-set f3bd5169811e of sibling class
BlackoilPropertiesBasic .
This commit is contained in:
Bård Skaflestad 2012-02-15 15:37:02 +01:00
parent a8b7dc1fbb
commit 232c84ff70

View File

@ -182,7 +182,7 @@ namespace Opm
for (int phase = 0; phase < np; ++phase) {
rho[np*i + phase] = 0.0;
for (int comp = 0; comp < np; ++comp) {
rho[np*i + phase] += A[n*np*np + np*phase + comp]*sdens[comp];
rho[np*i + phase] += A[i*np*np + np*phase + comp]*sdens[comp];
}
}
}