Calculation of acoustic entropy implemented with fftw3 in c++