@@ -57,10 +57,7 @@ void FFT_Bundle::initfft(int nx_in,
5757 }
5858#endif
5959 }
60- if (this ->precision == " double" || this ->precision == " mixing" )
61- {
62- double_flag = true ;
63- }
60+ double_flag = true ;
6461#if defined(__DSP)
6562 if (device == " dsp" )
6663 {
@@ -141,7 +138,7 @@ void FFT_Bundle::clear()
141138
142139void FFT_Bundle::resource_handler (const int flag) const
143140{
144- if (this ->device == " dsp" )
141+ if (this ->device == " dsp" )
145142 {
146143 if (double_flag)
147144 {
@@ -220,27 +217,23 @@ void FFT_Bundle::fftxyc2r(std::complex<double>* in, double* out) const
220217}
221218
222219template <>
223- void FFT_Bundle::fft3D_forward (std::complex <float >* in,
224- std::complex <float >* out) const
220+ void FFT_Bundle::fft3D_forward (std::complex <float >* in, std::complex <float >* out) const
225221{
226222 fft_float->fft3D_forward (in, out);
227223}
228224template <>
229- void FFT_Bundle::fft3D_forward (std::complex <double >* in,
230- std::complex <double >* out) const
225+ void FFT_Bundle::fft3D_forward (std::complex <double >* in, std::complex <double >* out) const
231226{
232227 fft_double->fft3D_forward (in, out);
233228}
234229
235230template <>
236- void FFT_Bundle::fft3D_backward (std::complex <float >* in,
237- std::complex <float >* out) const
231+ void FFT_Bundle::fft3D_backward (std::complex <float >* in, std::complex <float >* out) const
238232{
239233 fft_float->fft3D_backward (in, out);
240234}
241235template <>
242- void FFT_Bundle::fft3D_backward (std::complex <double >* in,
243- std::complex <double >* out) const
236+ void FFT_Bundle::fft3D_backward (std::complex <double >* in, std::complex <double >* out) const
244237{
245238 fft_double->fft3D_backward (in, out);
246239}
0 commit comments