store agents in grids, not model

This commit is contained in:
Simon Gardling
2021-04-01 09:28:43 -04:00
parent 4e688c3fa7
commit 953c540263
3 changed files with 90 additions and 71 deletions

View File

@@ -2,15 +2,15 @@ use physarum::model;
fn main() {
// # of iterations to go through
let n_iterations = 2048;
let n_iterations = 254;
// Size of grid and pictures
// let (width, height) = (256, 256);
let (width, height) = (1024, 1024);
let (width, height) = (256, 256);
// let (width, height) = (1024, 1024);
// # of agents
let n_particles = 1 << 24;
// let n_particles = 1 << 16;
// let n_particles = 1 << 24;
let n_particles = 1 << 16;
println!("n_particles: {}", n_particles);
let diffusivity = 1;