12 #include <gsl/gsl_rng.h>
14 #define qsort_openmp qsort
31 MPI_Comm_rank(MPI_COMM_WORLD, &
ThisTask);
33 gsl_rng * r = gsl_rng_alloc(gsl_rng_mt19937);
40 #pragma omp parallel for
50 P[i].Pos[j] = BoxSize * gsl_rng_uniform(r);
51 P[i].Key =
PEANO(
P[i].Pos, BoxSize);
65 MPI_Barrier(MPI_COMM_WORLD);
85 double BoxSize = 20000;
97 assert_all_true(&fof);
99 MPI_Comm_size(MPI_COMM_WORLD, &
NTask);
100 MPI_Comm_rank(MPI_COMM_WORLD, &
ThisTask);
115 const struct CMUnitTest tests[] = {
118 return cmocka_run_group_tests_mpi(tests, NULL, NULL);
void domain_decompose_full(DomainDecomp *ddecomp)
void set_domain_par(DomainParams dp)
void fof_finish(FOFGroups *fof)
FOFGroups fof_fof(DomainDecomp *ddecomp, const int StoreGrNr, MPI_Comm Comm)
void init_forcetree_params(const int FastParticleType)
struct part_manager_type PartManager[1]
void particle_alloc_memory(struct part_manager_type *PartManager, double BoxSize, int64_t MaxPart)
static peano_t PEANO(double *Pos, double BoxSize)
int DomainOverDecompositionFactor
int DomainUseGlobalSorting
double TopNodeAllocFactor
static void test_fof(void **state)
static struct ClockTable CT
static int setup_particles(int NumPart, double BoxSize)
static int teardown_particles(void **state)
void walltime_init(struct ClockTable *ct)