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

Turn comparison with unused result into assignment #447

Closed G-071 closed 1 year ago

G-071 commented 1 year ago

There is a comparison with an unused result in grid.cpp that has been there for quite a while apparently (in grid::diagnostic).

I am pretty sure this should be an assignment operator instead (as the the line currently does not make a lot of sense since the comparison result is never used). Hence this pull request to quickly fix this.