Skip to content

Commit

Permalink
Updated main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
eg0000r-pub committed Jan 28, 2024
1 parent f52ff17 commit bb0777a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bb0777a

Please sign in to comment.