Currently, genetIC uses by default a fourth-order finite difference method to compute velocities (for velocity and angular momentum modifications), but it uses a Fourier-based method to compute the displacements and velocities to generate the output.
For the sake of consistency, it would be arguably better to use finite-differences everywhere for gradient estimations.
Note after #80 is merged, the compilation flag ZELDOVICH_GRADIENT_FOURIER_SPACE can be deactivated to switch off the gradient computation in Fourier space. We would however need to update all the answer tests.
Currently,
genetIC
uses by default a fourth-order finite difference method to compute velocities (for velocity and angular momentum modifications), but it uses a Fourier-based method to compute the displacements and velocities to generate the output.For the sake of consistency, it would be arguably better to use finite-differences everywhere for gradient estimations.
Note after #80 is merged, the compilation flag
ZELDOVICH_GRADIENT_FOURIER_SPACE
can be deactivated to switch off the gradient computation in Fourier space. We would however need to update all the answer tests.