mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Fixed SEGV in case the underlying simulation data does not support uniqueID
This commit is contained in:
parent
7f8f0441b0
commit
2696ad20d1
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ void makeBox(SimuData *simu, double *efac, SimuData *&boxed, generateMock_info&
|
|||
assert(boxed->Pos[j][k] < 1);
|
||||
}
|
||||
particle_id[k] = simu->Id[i]-1;
|
||||
uniqueID[k] = simu_uniqueID[i];
|
||||
uniqueID[k] = (simu_uniqueID != 0) ? simu_uniqueID[i] : 0;
|
||||
expansion_fac[k] = efac[i];
|
||||
k++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue