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:
parent
c13fdc0572
commit
57e6c6300d
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue