Community Tutorial: Ocean Simulation

I’ve got the algorithm working so that the FFTGrid in the 256x256 and 32x32 cases are initialized with the same values. After completion of the iFFT the 32x32 DisplacementGrid contains values that are much larger than the 256x256 grid. My assumption is that the Displacement grids after the iFFT represent the same area and the 256x256 grid is just higher resolution.

A question that I have is related to the inverse DFT:

image

I can’t seem to find where the 1/N term is applied. I assume I’m missing something obvious but I’m suspicious that this might be causing some of my issues.