Commit 23dfdab6 authored by Josh Borrow's avatar Josh Borrow Committed by Matthieu Schaller
Browse files

Apple shizzle

parent dba4319d
......@@ -18,7 +18,7 @@
*
******************************************************************************/
#ifndef SWIFT_MULTI_SOFTENING_GRAVITY_H
#define SWIFT_MULIT_SOFTENING_GRAVITY_H
#define SWIFT_MULTI_SOFTENING_GRAVITY_H
#include <float.h>
......
......@@ -210,21 +210,21 @@ potential_derivatives_compute_M2L(const float r_x, const float r_y,
error("Computing M2L derivatives below softening length");
#endif
float Dt_1;
float Dt_1 = 0.f;
#if SELF_GRAVITY_MULTIPOLE_ORDER > 0
float Dt_3;
float Dt_3 = 0.f;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 1
float Dt_5;
float Dt_5 = 0.f;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 2
float Dt_7;
float Dt_7 = 0.f;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 3
float Dt_9;
float Dt_9 = 0.f;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 4
float Dt_11;
float Dt_11 = 0.f;
#endif
/* Un-truncated case (Newtonian potential) */
......@@ -437,12 +437,12 @@ potential_derivatives_compute_M2P(const float r_x, const float r_y,
error("Computing M2P derivatives below softening length");
#endif
float Dt_1;
float Dt_3;
float Dt_5;
float Dt_7;
float Dt_1 = 0.f;
float Dt_3 = 0.f;
float Dt_5 = 0.f;
float Dt_7 = 0.f;
#if SELF_GRAVITY_MULTIPOLE_ORDER > 3
float Dt_9;
float Dt_9 = 0.f;
#endif
/* Un-truncated case (Newtonian potential) */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment