Skip to content
Snippets Groups Projects
Verified Commit 88b551ce authored by Martin Kröning's avatar Martin Kröning :crab:
Browse files

refactor(laplace): extract residual variable

parent 87fb1765
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment