Add DiagonalWalkera and fix 3D KD grid
This commit is contained in:
+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user