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

Corrected bug that chose the wrong Fourier grid size for the case

where the particle grid is not a power of two times the descriptor
S-value.
This commit is contained in:
Adrian Jenkins 2021-05-27 14:27:40 +01:00
parent c13fdc0572
commit 57e6c6300d

View file

@ -136,8 +136,7 @@ void RNG_panphasia_ho::Run_Panphasia_Highorder(Grid_FFT<real_t> &g)
// Choose smallest value of level to equal of exceed grid_res_) // Choose smallest value of level to equal of exceed grid_res_)
for (rel_level = 0; fdim * (PANPHASIA2::descriptor_base_size << (rel_level + 1)) <= grid_res_; rel_level++) for (rel_level = 0; fdim * (PANPHASIA2::descriptor_base_size <<rel_level) < grid_res_; rel_level++);
;
printf("Setting relative level = %lu\n", rel_level); printf("Setting relative level = %lu\n", rel_level);