gandalfcode / gandalf

GANDALF (Graphical Astrophysics code for N-body Dynamics And Lagrangian Fluids)
GNU General Public License v2.0
44 stars 12 forks source link

Sinks optimization #96

Open giovanni-rosotti opened 7 years ago

giovanni-rosotti commented 7 years ago

Sink accretion in the meshless currently forces us to update the ghosts and restock the tree. It would be beneficial to move it in the main loop soon before we move the particles (see discussion in #92 ) so that this is not necessary. If we are doing this it might also be a good occasion to check that sink accretion is done in an efficient way (i.e. using the tree, not looping over all particles, etc.).