MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdio.h>
#include <math.h>
#include <gsl/gsl_integration.h>
#include "stub.h"
#include "../omega_nu_single.h"
#include "../physconst.h"
Go to the source code of this file.
Macros | |
#define | T_CMB0 2.7255 /* present-day CMB temperature, from Fixsen 2009 */ |
#define | STEFAN_BOLTZMANN 5.670373e-5 |
#define | OMEGAR (4*STEFAN_BOLTZMANN*8*M_PI*GRAVITY/(3*LIGHTCGS*LIGHTCGS*LIGHTCGS*HUBBLE*HUBBLE*HubbleParam*HubbleParam)*pow(T_CMB0,4)) |
#define | GSL_VAL 200 |
Functions | |
static void | test_rho_nu_init (void **state) |
static void | test_omega_nu_single (void **state) |
double | get_rho_nu_conversion () |
double | rho_nu_int (double q, void *params) |
double | do_exact_rho_nu_integration (double a, double mnu, double rhocrit) |
static void | test_omega_nu_single_exact (void **state) |
static void | test_omega_nu_init_degenerate (void **state) |
static void | test_omega_nu_init_nondeg (void **state) |
static void | test_get_omega_nu (void **state) |
static void | test_get_omegag (void **state) |
static void | test_nufrac_low (void **state) |
static void | test_hybrid_neutrinos (void **state) |
int | main (void) |
#define GSL_VAL 200 |
Definition at line 36 of file test_omega_nu_single.c.
#define OMEGAR (4*STEFAN_BOLTZMANN*8*M_PI*GRAVITY/(3*LIGHTCGS*LIGHTCGS*LIGHTCGS*HUBBLE*HUBBLE*HubbleParam*HubbleParam)*pow(T_CMB0,4)) |
Definition at line 35 of file test_omega_nu_single.c.
#define STEFAN_BOLTZMANN 5.670373e-5 |
Definition at line 34 of file test_omega_nu_single.c.
#define T_CMB0 2.7255 /* present-day CMB temperature, from Fixsen 2009 */ |
Definition at line 12 of file test_omega_nu_single.c.
double do_exact_rho_nu_integration | ( | double | a, |
double | mnu, | ||
double | rhocrit | ||
) |
Definition at line 77 of file test_omega_nu_single.c.
References BOLEVK, get_rho_nu_conversion(), GSL_VAL, rho_nu_int(), T_CMB0, and TNUCMB.
Referenced by test_omega_nu_single_exact().
double get_rho_nu_conversion | ( | ) |
Definition at line 102 of file omega_nu_single.c.
References HBAR, and LIGHTCGS.
Referenced by do_exact_rho_nu_integration(), non_rel_rho_nu(), rel_rho_nu(), and rho_nu_init().
int main | ( | void | ) |
Definition at line 196 of file test_omega_nu_single.c.
References test_get_omega_nu(), test_get_omegag(), test_hybrid_neutrinos(), test_nufrac_low(), test_omega_nu_init_degenerate(), test_omega_nu_init_nondeg(), test_omega_nu_single(), test_omega_nu_single_exact(), and test_rho_nu_init().
double rho_nu_int | ( | double | q, |
void * | params | ||
) |
Definition at line 91 of file omega_nu_single.c.
Referenced by do_exact_rho_nu_integration(), and rho_nu_init().
|
static |
Definition at line 143 of file test_omega_nu_single.c.
References get_omega_nu(), init_omega_nu(), omega_nu_single(), and T_CMB0.
Referenced by main().
|
static |
Definition at line 157 of file test_omega_nu_single.c.
References get_omegag(), init_omega_nu(), OMEGAR, and T_CMB0.
Referenced by main().
|
static |
Definition at line 177 of file test_omega_nu_single.c.
References get_omega_nu_nopart(), _omega_nu::hybnu, init_hybrid_nu(), init_omega_nu(), _omega_nu::kBtnu, nufrac_low(), omega_nu_single(), particle_nu_fraction(), and T_CMB0.
Referenced by main().
|
static |
Definition at line 169 of file test_omega_nu_single.c.
References nufrac_low().
Referenced by main().
|
static |
Definition at line 116 of file test_omega_nu_single.c.
References init_omega_nu(), _rho_nu_single::loga, _omega_nu::nu_degeneracies, _omega_nu::RhoNuTab, and T_CMB0.
Referenced by main().
|
static |
Definition at line 129 of file test_omega_nu_single.c.
References init_omega_nu(), _rho_nu_single::loga, _omega_nu::nu_degeneracies, _omega_nu::RhoNuTab, and T_CMB0.
Referenced by main().
|
static |
Definition at line 40 of file test_omega_nu_single.c.
References init_omega_nu(), _rho_nu_single::mnu, omega_nu_single(), OMEGAR, _omega_nu::rhocrit, _omega_nu::RhoNuTab, and T_CMB0.
Referenced by main().
|
static |
Definition at line 94 of file test_omega_nu_single.c.
References do_exact_rho_nu_integration(), init_omega_nu(), omega_nu_single(), _omega_nu::rhocrit, and T_CMB0.
Referenced by main().
|
static |
Definition at line 15 of file test_omega_nu_single.c.
References _rho_nu_single::acc, BOLEVK, _rho_nu_single::interp, _rho_nu_single::loga, _rho_nu_single::mnu, rho_nu_init(), _rho_nu_single::rhonu, T_CMB0, and TNUCMB.
Referenced by main().