mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Added more assertion checks. Fixed default value for the subsampling.
This commit is contained in:
parent
3c9ad41132
commit
69def32595
2 changed files with 4 additions and 2 deletions
|
@ -349,6 +349,8 @@ void buildBox(SimuData *simu, long num_targets, long loaded,
|
|||
for (uint32_t i = 0; i < num_targets; i++, loaded++)
|
||||
{
|
||||
long pid = particle_id[loaded];
|
||||
assert(pid < simu->NumPart);
|
||||
assert(loaded < boxed->NumPart);
|
||||
|
||||
for (int j = 0; j < 3; j++)
|
||||
{
|
||||
|
@ -513,7 +515,7 @@ void makeBoxFromParameter(SimuData *simu, SimuData* &boxed, generateMock_info& a
|
|||
{
|
||||
particle_id[pid_write] = particle_id[pid_read];
|
||||
uniqueID[pid_write] = uniqueID[pid_read];
|
||||
expansion_fac[pid_write] = uniqueID[pid_read];
|
||||
expansion_fac[pid_write] = expansion_fac[pid_read];
|
||||
pid_write++;
|
||||
}
|
||||
pid_read++;
|
||||
|
|
|
@ -31,7 +31,7 @@ option "peculiarVelocities" - "Added peculiar velocities distortion" flag off
|
|||
|
||||
option "cosmo" - "Apply cosmological redshift" flag off
|
||||
|
||||
option "subsample" - "Subsample the input simulation by the specified amount" double optional
|
||||
option "subsample" - "Subsample the input simulation by the specified amount" double optional default="1.0"
|
||||
|
||||
option "inputParameter" - "Input geometry (optional, warning!)" string optional
|
||||
option "gadgetUnit" - "Unit of length in gadget file in Mpc/h" double optional default="0.001"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue