restructuring

This commit is contained in:
Simon Gardling
2021-04-01 10:33:05 -04:00
parent f8b16c720b
commit 41ba5f248c
6 changed files with 231 additions and 122 deletions

View File

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