MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <gsl/gsl_integration.h>
#include <stdint.h>
#include "stub.h"
#include <libgadget/timefac.h>
Go to the source code of this file.
Classes | |
struct | fac_params |
Macros | |
#define | AMIN 0.005 |
#define | AMAX 1.0 |
#define | LTIMEBINS 29 |
Functions | |
double | hubble_function (const Cosmology *CP, double a) |
double | fac_integ (double a, void *param) |
double | loga_from_ti (int ti) |
static int | get_ti (double aa) |
double | exact_drift_factor (Cosmology *CP, double a1, double a2, int exp) |
void | test_drift_factor (void **state) |
int | main (void) |
#define AMAX 1.0 |
Definition at line 17 of file test_timefac.c.
#define AMIN 0.005 |
Definition at line 16 of file test_timefac.c.
#define LTIMEBINS 29 |
Definition at line 18 of file test_timefac.c.
double exact_drift_factor | ( | Cosmology * | CP, |
double | a1, | ||
double | a2, | ||
int | exp | ||
) |
Definition at line 64 of file test_timefac.c.
References CP, fac_params::exp, and fac_integ().
Referenced by test_drift_factor().
double fac_integ | ( | double | a, |
void * | param | ||
) |
Definition at line 40 of file test_timefac.c.
References fac_params::CP, fac_params::exp, and hubble_function().
Referenced by exact_drift_factor().
|
inlinestatic |
Definition at line 58 of file test_timefac.c.
References AMAX, AMIN, and LTIMEBINS.
Referenced by test_drift_factor().
double hubble_function | ( | const Cosmology * | CP, |
double | a | ||
) |
Definition at line 21 of file test_timefac.c.
References CP, and Cosmology::Omega0.
Referenced by fac_integ().
double loga_from_ti | ( | int | ti | ) |
Definition at line 51 of file test_timefac.c.
References AMAX, AMIN, and LTIMEBINS.
Referenced by cooling_direct(), density(), get_atime(), get_exact_factor(), and test_conversions().
int main | ( | void | ) |
Definition at line 109 of file test_timefac.c.
References test_drift_factor().
void test_drift_factor | ( | void ** | state | ) |
Definition at line 78 of file test_timefac.c.
References AMAX, AMIN, CP, exact_drift_factor(), fac_params::exp, get_exact_drift_factor(), get_exact_gravkick_factor(), get_exact_hydrokick_factor(), get_ti(), LTIMEBINS, and Cosmology::Omega0.
Referenced by main().