From 63a39cc9c8da17183f612c8a341738d25a997d80 Mon Sep 17 00:00:00 2001 From: Yohai Meiron Date: Fri, 6 Mar 2020 15:18:32 -0500 Subject: [PATCH] Removed ifdef blocks specific to non-Yebisu libraries --- phigrape.cpp | 131 +-------------------------------------------------- 1 file changed, 1 insertion(+), 130 deletions(-) diff --git a/phigrape.cpp b/phigrape.cpp index 33c243f..d258c08 100644 --- a/phigrape.cpp +++ b/phigrape.cpp @@ -74,10 +74,6 @@ Last redaction : 2019.04.16 12:55 //#define BH_OUT_NB_EXT // extra output for the BH's neighbours (external) -//#define SAPPORO // Gaburov. Do not tuch! Defined inside the Makefiles !!! -//#define YEBISU // Nitadori. Do not tuch! Defined inside the Makefiles !!! -//#define GUINNESS // Nakasato. Do not tuch! Defined inside the Makefiles !!! - //#define STARDESTR // disruption of stars by BH tidal forces //#define STARDESTR_EXT // disruption of stars by external BH tidal forces @@ -135,8 +131,6 @@ Last redaction : 2019.04.16 12:55 -30.0 ~1e-9 */ -//#define AMD - //#define ACT_DEF_LL #if defined(ACT_DEF_LL) && defined(ACT_DEF_GRAPITE) @@ -159,22 +153,8 @@ double aaapars[5]; extern void qwerty_(double *aaa, double *aaapars); */ -#ifdef SAPPORO -#include -#include -#define GPU_PIPE 256 -#else -# ifdef YEBISU -# define G6_NPIPE 2048 -# else -# define G6_NPIPE 48 -# endif +#define G6_NPIPE 2048 #include "grape6.h" -#endif - -#ifdef GUINNESS -#define GPU_PIPE 128 -#endif #include @@ -330,28 +310,10 @@ double DT_ACT_REDUCE; int clusterid, ii, nn, numGPU; -//#ifdef SAPPORO -#if defined(SAPPORO) || defined(GUINNESS) - -int npipe=GPU_PIPE, index_i[GPU_PIPE]; -double h2_i[GPU_PIPE], x_i[GPU_PIPE][3], v_i[GPU_PIPE][3], - p_i[GPU_PIPE], a_i[GPU_PIPE][3], jerk_i[GPU_PIPE][3]; -double new_tunit=51.0, new_xunit=51.0; - -#elif defined YEBISU - int npipe=G6_NPIPE, index_i[G6_NPIPE]; double h2_i[G6_NPIPE], x_i[G6_NPIPE][3], v_i[G6_NPIPE][3], p_i[G6_NPIPE], a_i[G6_NPIPE][3], jerk_i[G6_NPIPE][3]; int new_tunit=51, new_xunit=51; -#else - -int npipe=48, index_i[48]; -double h2_i[48], x_i[48][3], v_i[48][3], - p_i[48], a_i[48][3], jerk_i[48][3]; -int new_tunit=51, new_xunit=51; - -#endif int aflag=1, jflag=1, pflag=1; @@ -1109,11 +1071,7 @@ void calc_self_grav_zero() /* calc the grav for the active particles */ -#ifdef SAPPORO -g6_set_ti_(&clusterid, &time_cur); -#else g6_set_ti(clusterid, time_cur); -#endif ni = n_act; @@ -1146,13 +1104,8 @@ for (i=0; i 100.0) jerk_i[ii][2] = 100.0; } -#ifdef SAPPORO - g6calc_firsthalf_(&clusterid, &n_loc, &nn, index_i, x_i, v_i , a_i, jerk_i, p_i, &eps2, h2_i); - g6calc_lasthalf_(&clusterid, &n_loc, &nn, index_i, x_i, v_i, &eps2, h2_i, a_i, jerk_i, p_i); -#else g6calc_firsthalf(clusterid, n_loc, nn, index_i, x_i, v_i , a_i, jerk_i, p_i, eps2, h2_i); g6calc_lasthalf(clusterid, n_loc, nn, index_i, x_i, v_i, eps2, h2_i, a_i, jerk_i, p_i); -#endif for (ii=0; ii