Skip to content

Commit

Permalink
Fix index unraveling
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jun 11, 2024
1 parent afb6db1 commit 7da73cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ where
// Interpolate over x
for iy in 0..2 {
for iz in 0..2 {
let iix = iy + (2 * iz);
let iix = (2 * iy) + iz;
c[iix] = values[[0, iy, iz]] * m_x[[0]] + values[[1, iy, iz]] * x[[0]];
}
}
Expand Down

0 comments on commit 7da73cd

Please sign in to comment.