mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Fix silly mistake: Multiplying from the right scales columns, not rows.
This commit is contained in:
parent
02d3601072
commit
86ab541f66
@ -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