mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 07:53:29 -06:00
Fix a likely indexing error leading to non-unit strides.
This commit is contained in:
parent
c9d96d81b8
commit
6b96d48677
@ -539,7 +539,7 @@ namespace Opm
|
||||
for (int wix = 0; wix < nw; ++wix) {
|
||||
for (int phase = 0; phase < np; ++phase) {
|
||||
// Reset vector
|
||||
phase_flow_per_well[wix + np*phase] = 0.0;
|
||||
phase_flow_per_well[wix*np + phase] = 0.0;
|
||||
}
|
||||
for (int i = wells.well_connpos[wix]; i < wells.well_connpos[wix + 1]; ++i) {
|
||||
for (int phase = 0; phase < np; ++phase) {
|
||||
|
Loading…
Reference in New Issue
Block a user