Skip to content

Commit

Permalink
refactor(laplace): extract residual variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 17, 2024
1 parent ea257e3 commit fcb950e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/demo/src/laplace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,7 @@ fn compute(matrix: &mut [f64], size_x: usize, size_y: usize) -> (usize, f64) {
counter += 1;
}

(counter, get_residual(&current, size_x, size_y))
let residual = get_residual(&current, size_x, size_y);

(counter, residual)
}

0 comments on commit fcb950e

Please sign in to comment.