MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <math.h>
#include <mpi.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <gsl/gsl_rng.h>
#include "stub.h"
#include <libgadget/partmanager.h>
#include <libgadget/domain.h>
#include <libgadget/slotsmanager.h>
Go to the source code of this file.
Functions | |
static int | setup_particles (void **state) |
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 void | test_slots_zero (void **state) |
static void | test_slots_fork (void **state) |
static void | test_slots_convert (void **state) |
int | main (void) |
Variables | |
struct part_manager_type | PartManager [1] = {{0}} |
int main | ( | void | ) |
Definition at line 223 of file test_slotsmanager.c.
References test_slots_convert(), test_slots_fork(), test_slots_gc(), test_slots_gc_sorted(), test_slots_reserve(), and test_slots_zero().
|
static |
Definition at line 21 of file test_slotsmanager.c.
References part_manager_type::Base, part_manager_type::MaxPart, mymalloc, part_manager_type::NumPart, P, PartManager, ptype, slots_init(), slots_reserve(), slots_set_enabled(), slots_setup_id(), slots_setup_topology(), and SlotsManager.
Referenced by test_slots_convert(), test_slots_fork(), test_slots_gc(), test_slots_gc_sorted(), test_slots_reserve(), and test_slots_zero().
|
static |
Definition at line 56 of file test_slotsmanager.c.
References part_manager_type::Base, myfree, PartManager, slots_free(), and SlotsManager.
Referenced by test_slots_convert(), test_slots_fork(), test_slots_gc(), test_slots_gc_sorted(), and test_slots_zero().
|
static |
Definition at line 205 of file test_slotsmanager.c.
References slots_manager_type::info, part_manager_type::NumPart, P, PartManager, setup_particles(), slot_info::size, slots_convert(), SlotsManager, teardown_particles(), and particle_data::Type.
Referenced by main().
|
static |
Definition at line 184 of file test_slotsmanager.c.
References slots_manager_type::info, part_manager_type::NumPart, P, PartManager, setup_particles(), slot_info::size, slots_convert(), slots_split_particle(), SlotsManager, teardown_particles(), and particle_data::Type.
Referenced by main().
|
static |
Definition at line 64 of file test_slotsmanager.c.
References slots_manager_type::info, part_manager_type::NumPart, PartManager, setup_particles(), slot_info::size, slots_check_id_consistency(), slots_gc(), slots_mark_garbage(), SlotsManager, and teardown_particles().
Referenced by main().
|
static |
Definition at line 86 of file test_slotsmanager.c.
References slots_manager_type::info, part_manager_type::NumPart, PartManager, setup_particles(), slot_info::size, slots_check_id_consistency(), slots_gc_sorted(), slots_mark_garbage(), SlotsManager, and teardown_particles().
Referenced by main().
|
static |
Definition at line 106 of file test_slotsmanager.c.
References slots_manager_type::info, slot_info::maxsize, ptype, setup_particles(), slots_reserve(), and SlotsManager.
Referenced by main().
|
static |
Definition at line 150 of file test_slotsmanager.c.
References slots_manager_type::info, part_manager_type::NumPart, PartManager, setup_particles(), slot_info::size, slots_gc(), slots_gc_sorted(), slots_mark_garbage(), SlotsManager, and teardown_particles().
Referenced by main().
struct part_manager_type PartManager[1] = {{0}} |
Definition at line 1 of file test_slotsmanager.c.
Referenced by setup_particles(), teardown_particles(), test_slots_convert(), test_slots_fork(), test_slots_gc(), test_slots_gc_sorted(), and test_slots_zero().