|
MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <mpi.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include "utils.h"#include "gravity.h"#include "shortrange-kernel.c"Go to the source code of this file.
Macros | |
| #define | NTAB (sizeof(shortrange_force_kernels) / sizeof(shortrange_force_kernels[0])) |
Functions | |
| void | gravshort_fill_ntab (const enum ShortRangeForceWindowType ShortRangeForceWindowType, const double Asmth) |
| int | grav_apply_short_range_window (double r, double *fac, double *pot, const double cellsize) |
Variables | |
| static float | shortrange_table [NTAB] |
| static float | shortrange_table_potential [NTAB] |
| static float | shortrange_table_tidal [NTAB] |
| #define NTAB (sizeof(shortrange_force_kernels) / sizeof(shortrange_force_kernels[0])) |
| int grav_apply_short_range_window | ( | double | r, |
| double * | fac, | ||
| double * | pot, | ||
| const double | cellsize | ||
| ) |
Definition at line 55 of file gravity.c.
References NTAB, shortrange_force_kernels, shortrange_table, and shortrange_table_potential.
Referenced by apply_accn_to_output(), and grav_short_pair_ngbiter().
| void gravshort_fill_ntab | ( | const enum ShortRangeForceWindowType ShortRangeForceWindowType ShortRangeForceWindowType | , |
| const double | Asmth | ||
| ) |
Definition at line 23 of file gravity.c.
References endrun(), NTAB, shortrange_force_kernels, SHORTRANGE_FORCE_WINDOW_TYPE_ERFC, SHORTRANGE_FORCE_WINDOW_TYPE_EXACT, shortrange_table, shortrange_table_potential, and shortrange_table_tidal.
Referenced by begrun(), and do_force_test().
|
static |
variables for short-range lookup table
Definition at line 20 of file gravity.c.
Referenced by grav_apply_short_range_window(), and gravshort_fill_ntab().
|
static |
Definition at line 20 of file gravity.c.
Referenced by grav_apply_short_range_window(), and gravshort_fill_ntab().
|
static |
Definition at line 20 of file gravity.c.
Referenced by gravshort_fill_ntab().