diff --git a/opm/core/fluid/BlackoilPropertiesBasic.cpp b/opm/core/fluid/BlackoilPropertiesBasic.cpp index 79e13f7e..41c8ea70 100644 --- a/opm/core/fluid/BlackoilPropertiesBasic.cpp +++ b/opm/core/fluid/BlackoilPropertiesBasic.cpp @@ -216,7 +216,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]; } } }