mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 15:51:12 +00:00
15 lines
345 B
C++
15 lines
345 B
C++
#include <CosmoTool/loadSimu.hpp>
|
|
#include "simulation_loader.hpp"
|
|
|
|
using namespace CosmoTool;
|
|
|
|
void SimulationLoader::applyTransformations(SimuData *s)
|
|
{
|
|
float redshift_gravity = do_redshift ? 1.0 : 0.0;
|
|
|
|
for (int i = 0; i < s->NumPart; i++)
|
|
{
|
|
s->Pos[redshift_axis][i] +=
|
|
redshift_gravity*s->Vel[redshift_axis][i]/100.;
|
|
}
|
|
}
|