Skip to content

Commit

Permalink
wip distribute weights in a way to have more intersting results
Browse files Browse the repository at this point in the history
  • Loading branch information
hhirtz committed Jan 4, 2023
1 parent 2922344 commit 5c73151
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ fn main() {
eprintln!("grid size: ({x},{y}); rcb iters: {iter}");
let grid = coupe::Grid::new_2d(x, y);
let n = usize::from(x) * usize::from(y);
let weights: Vec<f64> = (0..n).map(|i| i as f64).collect();
let weights: Vec<f64> = (0..n)
.map(|i| if i % x < 50 && i / y < 50 { 2 } else { 3 } as f64)
.collect();
let mut partition = vec![0; n];

let domain = ittapi::Domain::new("MyIncredibleDomain");
Expand Down

0 comments on commit 5c73151

Please sign in to comment.