10 #include <gsl/gsl_rng.h>
26 int64_t newSlots[6] = {128, 128, 128, 128, 128, 128};
45 #pragma omp parallel for
69 for(i = 0; i < 6; i ++) {
90 for(i = 0; i < 6; i ++) {
112 int64_t newSlots[6] = {128, 128, 128, 128, 128, 128};
126 newSlots[
ptype] += 1;
136 newSlots[
ptype] += 8192;
154 int compact[6] = {1,0,0,0,1,1};
188 for(i = 0; i < 6; i ++) {
209 for(i = 0; i < 6; i ++) {
224 const struct CMUnitTest tests[] = {
232 return cmocka_run_group_tests_mpi(tests, NULL, NULL);
#define mymalloc(name, size)
void slots_setup_id(const struct part_manager_type *pman, struct slots_manager_type *sman)
size_t slots_reserve(int where, int64_t atleast[6], struct slots_manager_type *sman)
void slots_set_enabled(int ptype, size_t elsize, struct slots_manager_type *sman)
void slots_mark_garbage(int i, struct part_manager_type *pman, struct slots_manager_type *sman)
void slots_free(struct slots_manager_type *sman)
void slots_setup_topology(struct part_manager_type *pman, int64_t *NLocal, struct slots_manager_type *sman)
int slots_gc(int *compact_slots, struct part_manager_type *pman, struct slots_manager_type *sman)
void slots_check_id_consistency(struct part_manager_type *pman, struct slots_manager_type *sman)
struct slots_manager_type SlotsManager[1]
void slots_gc_sorted(struct part_manager_type *pman, struct slots_manager_type *sman)
void slots_init(double increase, struct slots_manager_type *sman)
int slots_convert(int parent, int ptype, int placement, struct part_manager_type *pman, struct slots_manager_type *sman)
int slots_split_particle(int parent, double childmass, struct part_manager_type *pman)
struct particle_data * Base
static void test_slots_convert(void **state)
static void test_slots_zero(void **state)
static int setup_particles(void **state)
static void test_slots_fork(void **state)
struct part_manager_type PartManager[1]
static int teardown_particles(void **state)
static void test_slots_gc(void **state)
static void test_slots_gc_sorted(void **state)
static void test_slots_reserve(void **state)
static enum TransferType ptype