mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
Moved simulation loaders into their own subdirectory.
This commit is contained in:
parent
28edc7ce3d
commit
d29f92529b
6 changed files with 0 additions and 0 deletions
15
c_tools/mock/loaders/simulation_loader.cpp
Normal file
15
c_tools/mock/loaders/simulation_loader.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#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.;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue