From 71ff1f7e3caf48f395314b406f0233fca82d7dec Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Thu, 5 Sep 2019 15:05:48 +0200 Subject: [PATCH] No unnecessary pre-initialisation of the the D's in potential_derivatives_compute_M2P() --- src/gravity_derivatives.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gravity_derivatives.h b/src/gravity_derivatives.h index 554027f784..674779b54b 100644 --- a/src/gravity_derivatives.h +++ b/src/gravity_derivatives.h @@ -455,19 +455,19 @@ potential_derivatives_compute_M2P(const float r_x, const float r_y, error("Computing M2P derivatives below softening length"); #endif - float Dt_1 = 0.f; - float Dt_3 = 0.f; + float Dt_1; + float Dt_3; #if SELF_GRAVITY_MULTIPOLE_ORDER > 0 - float Dt_5 = 0.f; + float Dt_5; #endif #if SELF_GRAVITY_MULTIPOLE_ORDER > 1 - float Dt_7 = 0.f; + float Dt_7; #endif #if SELF_GRAVITY_MULTIPOLE_ORDER > 2 - float Dt_9 = 0.f; + float Dt_9; #endif #if SELF_GRAVITY_MULTIPOLE_ORDER > 3 - float Dt_11 = 0.f; + float Dt_11; #endif /* Un-truncated case (Newtonian potential) */ -- GitLab