let minus be closer to block

This commit is contained in:
Magnus Ulimoen 2019-11-08 21:00:52 +01:00
parent bb6cca9004
commit 1bf4753e9a
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ impl Upwind4 {
let last_elems = prev.slice(s!(nx - 7..;-1));
for (bl, f) in block.outer_iter().zip(&mut fut.slice_mut(s![nx - 4..;-1])) {
let diff = bl.dot(&last_elems);
*f += -diff * idx;
let diff = -bl.dot(&last_elems);
*f += diff * idx;
}
}
}