mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Correct silly mistake in defining hface phase contribs.
We were only advancing the phase contrib once per cell, but need a different contribution for each face for each cell...
This commit is contained in:
1 parent
99383e8f02
commit
650de8a127
1 file changed
+2
-2
+2
-2
@@ -364,8 +364,8 @@ cfs_tpfa_sum_phase_contrib(grid_t *G ,
|
||||
|
||||
const double *v;
|
||||
|
||||
for (c = i = 0, v = xcf; c < G->number_of_cells; c++, v += sz) {
|
||||
for (; i < G->cell_facepos[c + 1]; i++) {
|
||||
for (c = i = 0, v = xcf; c < G->number_of_cells; c++) {
|
||||
for (; i < G->cell_facepos[c + 1]; i++, v += sz) {
|
||||
|
||||
sum[i] = 0.0;
|
||||
for (j = 0; j < sz; j++) {
|
||||
|
||||
Reference in new issue
Block a user