55 #define GRAV_GET_PRIV(tw) ((struct GravShortPriv *) ((tw)->priv))
61 P[i].GravAccel[0] *=
G;
62 P[i].GravAccel[1] *=
G;
63 P[i].GravAccel[2] *=
G;
68 P[i].Potential -= 2.8372975 * pow(
P[i].Mass, 2.0 / 3) *
GRAV_GET_PRIV(tw)->cbrtrho0;
80 for(i = 0; i < 3; i++) {
81 double ax =
P[place].GravAccel[i] +
P[place].GravPM[i];
92 for(k = 0; k < 3; k++)
double FORCE_SOFTENING(int i, int type)
#define GRAV_GET_PRIV(tw)
static void grav_short_copy(int place, TreeWalkQueryGravShort *input, TreeWalk *tw)
static void grav_short_reduce(int place, TreeWalkResultGravShort *result, enum TreeWalkReduceMode mode, TreeWalk *tw)
static void grav_short_postprocess(int i, TreeWalk *tw)
#define TREEWALK_REDUCE(A, B)