Skip to content
Snippets Groups Projects
Commit 71ff1f7e authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

No unnecessary pre-initialisation of the the D's in potential_derivatives_compute_M2P()

parent 002f4be0
No related branches found
No related tags found
1 merge request!914Improvements to the particle-multipole interactions
...@@ -455,19 +455,19 @@ potential_derivatives_compute_M2P(const float r_x, const float r_y, ...@@ -455,19 +455,19 @@ potential_derivatives_compute_M2P(const float r_x, const float r_y,
error("Computing M2P derivatives below softening length"); error("Computing M2P derivatives below softening length");
#endif #endif
float Dt_1 = 0.f; float Dt_1;
float Dt_3 = 0.f; float Dt_3;
#if SELF_GRAVITY_MULTIPOLE_ORDER > 0 #if SELF_GRAVITY_MULTIPOLE_ORDER > 0
float Dt_5 = 0.f; float Dt_5;
#endif #endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 1 #if SELF_GRAVITY_MULTIPOLE_ORDER > 1
float Dt_7 = 0.f; float Dt_7;
#endif #endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 2 #if SELF_GRAVITY_MULTIPOLE_ORDER > 2
float Dt_9 = 0.f; float Dt_9;
#endif #endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 3 #if SELF_GRAVITY_MULTIPOLE_ORDER > 3
float Dt_11 = 0.f; float Dt_11;
#endif #endif
/* Un-truncated case (Newtonian potential) */ /* Un-truncated case (Newtonian potential) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment