Seemingly working simulation and trajectory output (need to confirm output)

This commit is contained in:
Thomas Faour 2025-06-19 21:04:09 -04:00
parent be6229263d
commit b1b2e51507
4 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ use std::time::Duration;
// External crates
use clap::Parser;
use log::{info, warn, error, debug, trace};
use log::{info, debug};
use indicatif::{ProgressBar, ProgressStyle};
use humantime;
@ -18,7 +18,7 @@ mod simulator;
// Specific uses from modules
use crate::simulator::Simulation;
use crate::types::{norm_mass, norm_pos, norm_vel, norm_time, real_pos, real_vel};
use crate::types::norm_time;
#[derive(Parser, Debug)]

View File

@ -1,8 +1,8 @@
use std::fs::OpenOptions;
use std::io::BufWriter;
use serde::{Deserialize, Serialize};
use log::{info, warn, error, debug, trace};
use serde::Serialize;
use log::{debug, trace};
use glam::DVec3;
use crate::config::Body;
@ -58,7 +58,7 @@ impl Simulation {
bodies: &self.bodies,
};
bincode::serialize_into(&mut writer, &snapshot);
bincode::serialize_into(&mut writer, &snapshot).expect("Couldn't write to trajectory. ");
//Do the progress bar
if let Some(f) = &mut on_step {
f();

BIN
tracjtory.out Normal file

Binary file not shown.

BIN
tracjtory.out2 Normal file

Binary file not shown.