White space fix

This commit is contained in:
Guilhem Lavaux 2014-05-22 09:33:52 +02:00
parent b89dbe0987
commit 29c9536ff1

View File

@ -83,30 +83,30 @@ namespace CosmoTool
Nc = 1; Nc = 1;
volume = 1; volume = 1;
for (int i = 0; i < dims.size(); i++) for (int i = 0; i < dims.size(); i++)
{ {
N *= dims[i]; N *= dims[i];
Nc *= m_dims_hc[i]; Nc *= m_dims_hc[i];
volume *= L[i]; volume *= L[i];
dk[i] = 2*M_PI/L[i]; dk[i] = 2*M_PI/L[i];
swapped_dims[dims.size()-1-i] = dims[i]; swapped_dims[dims.size()-1-i] = dims[i];
} }
realMap = new EuclidianFourierMapReal<T>( realMap = new EuclidianFourierMapReal<T>(
boost::shared_ptr<T>(calls::alloc_real(N), boost::shared_ptr<T>(calls::alloc_real(N),
std::ptr_fun(calls::free)), std::ptr_fun(calls::free)),
m_dims); m_dims);
fourierMap = new EuclidianFourierMapComplex<T>( fourierMap = new EuclidianFourierMapComplex<T>(
boost::shared_ptr<std::complex<T> >((std::complex<T>*)calls::alloc_complex(Nc), boost::shared_ptr<std::complex<T> >((std::complex<T>*)calls::alloc_complex(Nc),
std::ptr_fun(calls::free)), std::ptr_fun(calls::free)),
dims[0], m_dims_hc, dk); dims[0], m_dims_hc, dk);
{ {
m_analysis = calls::plan_dft_r2c(dims.size(), &swapped_dims[0], m_analysis = calls::plan_dft_r2c(dims.size(), &swapped_dims[0],
realMap->data(), (typename calls::complex_type *)fourierMap->data(), realMap->data(), (typename calls::complex_type *)fourierMap->data(),
FFTW_DESTROY_INPUT|FFTW_MEASURE); FFTW_DESTROY_INPUT|FFTW_MEASURE);
m_synthesis = calls::plan_dft_c2r(dims.size(), &swapped_dims[0], m_synthesis = calls::plan_dft_c2r(dims.size(), &swapped_dims[0],
(typename calls::complex_type *)fourierMap->data(), realMap->data(), (typename calls::complex_type *)fourierMap->data(), realMap->data(),
FFTW_DESTROY_INPUT|FFTW_MEASURE); FFTW_DESTROY_INPUT|FFTW_MEASURE);
} }
} }
virtual ~EuclidianFourierTransform() virtual ~EuclidianFourierTransform()