MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stddef.h>
#include <stdint.h>
#include <gsl/gsl_interp.h>
Go to the source code of this file.
Classes | |
struct | _powerspectrum |
Typedefs | |
typedef struct _powerspectrum | Power |
Functions | |
void | powerspectrum_alloc (Power *ps, const int nbins, const int nthreads, const int MassiveNuLinResp, const double BoxSize_in_cm) |
void | powerspectrum_zero (Power *ps) |
void | powerspectrum_free (Power *ps) |
void | powerspectrum_sum (Power *ps) |
void | powerspectrum_save (Power *ps, const char *OutputDir, const char *filename, const double Time, const double D1) |
typedef struct _powerspectrum Power |
void powerspectrum_alloc | ( | Power * | ps, |
const int | nbins, | ||
const int | nthreads, | ||
const int | MassiveNuLinResp, | ||
const double | BoxSize_in_cm | ||
) |
Definition at line 16 of file powerspectrum.c.
References _powerspectrum::BoxSize_in_MPC, CM_PER_MPC, _powerspectrum::delta_nu_ratio, _powerspectrum::kk, _powerspectrum::logknu, mymalloc, _powerspectrum::nalloc, _powerspectrum::Nmodes, _powerspectrum::Power, powerspectrum_zero(), and _powerspectrum::size.
Referenced by _prepare(), glass_evolve(), and test_total_powerspectrum().
void powerspectrum_free | ( | Power * | ps | ) |
Definition at line 44 of file powerspectrum.c.
References _powerspectrum::kk, _powerspectrum::logknu, myfree, and _powerspectrum::Nmodes.
Referenced by glass_evolve(), and gravpm_force().
void powerspectrum_save | ( | Power * | ps, |
const char * | OutputDir, | ||
const char * | filename, | ||
const double | Time, | ||
const double | D1 | ||
) |
Definition at line 92 of file powerspectrum.c.
References fastpm_strdup_printf(), _powerspectrum::kk, message(), myfree, _powerspectrum::Nmodes, _powerspectrum::nonzero, _powerspectrum::Power, and ThisTask.
Referenced by glass_evolve(), and gravpm_force().
void powerspectrum_sum | ( | Power * | ps | ) |
Definition at line 54 of file powerspectrum.c.
References _powerspectrum::BoxSize_in_MPC, _powerspectrum::kk, MPI_INT64, _powerspectrum::nalloc, _powerspectrum::Nmodes, _powerspectrum::nonzero, _powerspectrum::Norm, _powerspectrum::Power, and _powerspectrum::size.
Referenced by compute_neutrino_power(), glass_force(), gravpm_force(), and test_total_powerspectrum().
void powerspectrum_zero | ( | Power * | ps | ) |
Definition at line 35 of file powerspectrum.c.
References _powerspectrum::kk, _powerspectrum::nalloc, _powerspectrum::Nmodes, _powerspectrum::Norm, and _powerspectrum::Power.
Referenced by compute_neutrino_power(), glass_force(), powerspectrum_alloc(), and test_total_powerspectrum().