Fixed bug in matrix multiplication (matrix has Fortran element order).

This commit is contained in:
Atgeirr Flø Rasmussen 2012-08-27 11:19:22 +02:00
parent 0a8ac1ddb5
commit 9bb76d74cc

View File

@ -245,7 +245,7 @@ namespace Opm
for (int i = 0; i < n; ++i) {
for (int row = 0; row < np; ++row) {
for (int col = 0; col < np; ++col) {
surfacevol[i*np + row] += A[i*np*np + row*np + col] * saturation[i*np + col];
surfacevol[i*np + row] += A[i*np*np + row + col*np] * saturation[i*np + col];
}
}
}