STEllAR-GROUP / octotiger

Astrophysics program simulating the evolution of star systems based on the fast multipole method on adaptive Octrees
http://octotiger.stellar-group.org/
Boost Software License 1.0
48 stars 17 forks source link

Fix hydro TS CLI output #481

Closed G-071 closed 6 months ago

G-071 commented 6 months ago

I noticed some differences in the UR, UL values between the Kokkos and Legacy runs in the Octo-Tiger TS output (the timestep information) that gets printed every few time-steps.

I tracked these differences down to the maximum search for a in the flux kernel. While both the Kokkos and Legacy kernel variants actually always found the same maximum, the U values stored in ts (for subsequent printing to CLI) actually depended on the direction in the Kokkos kernel but not in the Legacy kernel.

This PR fixes this small oversight. Now the same values are getting printed. While I was at it, I removed some of the unused code in reconstruct/flux.hpp (leftovers from the initial GPU port) and added some more assertions.