Fix silly mistake: Multiplying from the right scales columns, not rows.
This commit is contained in:
parent
4683d6068e
commit
713225dcdd
@ -167,7 +167,7 @@ namespace Opm
|
||||
const double* dB = & dB_[i * np];
|
||||
for (int i2 = 0; i2 < np; ++i2) {
|
||||
for (int i1 = 0; i1 < np; ++i1) {
|
||||
m[i2*np + i1] *= - dB[ i1 ]; // Note sign.
|
||||
m[i2*np + i1] *= - dB[ i2 ]; // Note sign.
|
||||
}
|
||||
}
|
||||
|
||||
@ -183,7 +183,7 @@ namespace Opm
|
||||
const double* B = & B_[i * np];
|
||||
for (int i2 = 0; i2 < np; ++i2) {
|
||||
for (int i1 = 0; i1 < np; ++i1) {
|
||||
m[i2*np + i1] /= B[ i1 ];
|
||||
m[i2*np + i1] /= B[ i2 ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user