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_densityG -
hydro_prepare_forceG -
hydro_reset_accelerationG - Gradient Loop
-
hydro_end_gradientEG - Force Loop
hydro_end_force
Now this is changed to:
- Density Loop
-
hydro_end_densityG -
hydro_prepare_gradientG -
hydro_reset_gradientG - Gradient Loop
-
hydro_end_gradientEG -
hydro_prepare_forceEG -
hydro_reset_accelerationEG - 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.