From aed2920be7b28532b567bebe2ae376f136b2b7fa Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Thu, 27 Feb 2014 15:59:25 +0100 Subject: [PATCH] Fixed interface get_Kvec_p --- sample/test_fft_calls.cpp | 1 + src/fourier/details/euclidian_maps.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sample/test_fft_calls.cpp b/sample/test_fft_calls.cpp index b98fcea..e49ad82 100644 --- a/sample/test_fft_calls.cpp +++ b/sample/test_fft_calls.cpp @@ -89,5 +89,6 @@ int main(int argc, char **argv) test_2d(128,128); test_2d(128,131); test_2d(128,130); + test_2d(131,128); return 0; } diff --git a/src/fourier/details/euclidian_maps.hpp b/src/fourier/details/euclidian_maps.hpp index 53b0278..5b9b95d 100644 --- a/src/fourier/details/euclidian_maps.hpp +++ b/src/fourier/details/euclidian_maps.hpp @@ -172,7 +172,7 @@ namespace CosmoTool } template - void get_Kvec(long p, Array2& kvec) const + void get_Kvec_p(long p, Array2& kvec) const { const DimArray& dims = this->getDims(); DimArray d(delta_k.size()); @@ -212,7 +212,7 @@ namespace CosmoTool return std::sqrt(k2); } - double get_K(long p) const + double get_K_p(long p) const { const DimArray& dims = this->getDims(); DimArray d(delta_k.size());