From bb0777aeaff6fb9e32aea6b6e5b6606946af90c9 Mon Sep 17 00:00:00 2001 From: Egor Demidov Date: Sun, 28 Jan 2024 12:41:40 -0500 Subject: [PATCH] Updated main.cpp --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 5f1bb51..f9c2a72 100644 --- a/main.cpp +++ b/main.cpp @@ -120,7 +120,7 @@ int main() { if (n % dump_period == 0) { std::cout << "Dump #" << n / dump_period << std::endl; write_particles("run", system.get_x(), system.get_theta(), r_part); - std::cout << double(n) * dt << "\t" + ofs << double(n) * dt << "\t" << compute_translational_kinetic_energy(system.get_v(), mass) << "\t" << compute_rotational_kinetic_energy(system.get_v(), mass) << "\t" << compute_total_kinetic_energy(system.get_v(), system.get_omega(), mass, inertia) << "\t"