store agents in grids, not model
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user