Skip to content

Commit d0ef17b

Browse files
utilForeverdoyubkim
authored andcommitted
Fix invalid index in MG correct function (#140)
1 parent 25f3248 commit d0ef17b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jet/fdm_mg_linear_system3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void FdmMgUtils3::correct(const FdmVector3 &coarser, FdmVector3 *finer) {
167167
double w = iWeights[x] * jWeights[y] *
168168
kWeights[z] *
169169
coarser(iIndices[x], jIndices[y],
170-
kIndices[y]);
170+
kIndices[z]);
171171
(*finer)(i, j, k) += w;
172172
}
173173
}

0 commit comments

Comments
 (0)