Skip to content

Commit 0bb1649

Browse files
committed
BUG: row/col switched in solver_gradients 4o_j
1 parent 12ba82c commit 0bb1649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solver_gradients.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ arma_cube calc_gradient4o_j(arma_cube value, Grid grid) {
264264
iY = 0;
265265
gradient.col(iY) =
266266
(value.col(iY + 1) - value.col(iY)) /
267-
grid.dj_center_m_scgc.row(iY);
267+
grid.dj_center_m_scgc.col(iY);
268268

269269
// Upper (one sided):
270270
iY = nY - 1;

0 commit comments

Comments
 (0)