1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00
monofonIC/include/testing.hh

46 lines
1.5 KiB
C++
Raw Normal View History

2019-11-01 12:02:09 +01:00
/*******************************************************************\
testing.hh - This file is part of MUSIC2 -
a code to generate initial conditions for cosmological simulations
CHANGELOG (only majors, for details see repo):
10/2019 - Michael Michaux & Oliver Hahn - first implementation
\*******************************************************************/
#pragma once
2019-08-11 22:48:04 +02:00
#include <array>
#include <general.hh>
#include <config_file.hh>
#include <grid_fft.hh>
2019-10-24 14:44:06 +02:00
#include <cosmology_calculator.hh>
2019-08-11 22:48:04 +02:00
namespace testing{
void output_potentials_and_densities(
2019-08-11 22:48:04 +02:00
ConfigFile& the_config,
size_t ngrid, real_t boxlen,
2019-08-11 22:48:04 +02:00
Grid_FFT<real_t>& phi,
Grid_FFT<real_t>& phi2,
Grid_FFT<real_t>& phi3a,
Grid_FFT<real_t>& phi3b,
std::array< Grid_FFT<real_t>*,3 >& A3 );
2019-10-10 21:48:00 +02:00
void output_velocity_displacement_symmetries(
ConfigFile &the_config,
size_t ngrid, real_t boxlen, real_t vfac, real_t dplus,
2019-10-10 21:48:00 +02:00
Grid_FFT<real_t> &phi,
Grid_FFT<real_t> &phi2,
Grid_FFT<real_t> &phi3a,
Grid_FFT<real_t> &phi3b,
std::array<Grid_FFT<real_t> *, 3> &A3,
bool bwrite_out_fields=false);
void output_convergence(
ConfigFile &the_config,
2019-10-24 14:44:06 +02:00
CosmologyCalculator* the_cosmo_calc,
std::size_t ngrid, real_t boxlen, real_t vfac, real_t dplus,
Grid_FFT<real_t> &phi,
Grid_FFT<real_t> &phi2,
Grid_FFT<real_t> &phi3a,
Grid_FFT<real_t> &phi3b,
std::array<Grid_FFT<real_t> *, 3> &A3);
}