Add DiagonalWalkera and fix 3D KD grid

This commit is contained in:
2023-03-10 15:28:42 +00:00
parent 73bb0f8ed1
commit 10c7450c8a
9 changed files with 90 additions and 100 deletions
+1 -1
View File
@@ -39,6 +39,6 @@ fn write_csv_positions<R: Rng, P: Position, S: Storage<P>, W: Walker<P>, Sp: Spa
fn write_json_full_data<R: Rng, P: Position, S: Storage<P>, W: Walker<P>, Sp: Spawner<P>, St: Sticker<P, S>>(sys: &DLASystem<R, P, S, W, Sp, St>, output_path: &Path) {
let file = File::create(output_path).expect("Failed to open file");
serde_json::to_writer(file, &sys.history)
serde_json::to_writer_pretty(file, &sys.history)
.expect("Failed to write json");
}