Change gradient loops
This MR aims to change the gradient loops to be a bit more user-friendly. Previously we had:
- Density Loop
-
hydro_end_density
G -
hydro_prepare_force
G -
hydro_reset_acceleration
G - Gradient Loop
-
hydro_end_gradient
EG - Force Loop
hydro_end_force
Now this is changed to:
- Density Loop
-
hydro_end_density
G -
hydro_prepare_gradient
G -
hydro_reset_gradient
G - Gradient Loop
-
hydro_end_gradient
EG -
hydro_prepare_force
EG -
hydro_reset_acceleration
EG - Force Loop
hydro_end_force
with G=Ghost, and EG=Extra Ghost.
@bvandenbroucke I have made the appropriate changes for GIZMO-MFV and GIZMO-MFM; you may still want to refactor after this change as I imagine there is a bit more that you could be doing to leverage this new system.
I guess this will need quite a bit of testing. The changed GIZMO schemes both run the SodShock_1D just fine, as does the GADGET-2 scheme.