Skip to content

Commit 8c18170

Browse files
committed
fix fft_dsp
1 parent 8d86c06 commit 8c18170

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/module_basis/module_pw/module_fft/fft_dsp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ void FFT_DSP<double>::setupFFT()
2424
PLAN* ptr_plan_forward;
2525
PLAN* ptr_plan_backward;
2626
INT num_thread = 8;
27-
INT size;
27+
INT size=0;
2828
hthread_dat_load(cluster_id, FFT_DAT_DIR);
2929

3030
// compute the size of and malloc thread
3131
size = nx * ny * nz * 2 * sizeof(E);
3232
forward_in = (E*)hthread_malloc((int)cluster_id, size, HT_MEM_RW);
3333

34-
// // //init 3d fft problem
34+
//init 3d fft problem
3535
pbm_forward.num_dim = 3;
3636
pbm_forward.n[0] = nx;
3737
pbm_forward.n[1] = ny;
@@ -40,7 +40,7 @@ void FFT_DSP<double>::setupFFT()
4040
pbm_forward.in = forward_in;
4141
pbm_forward.out = forward_in;
4242

43-
// // //make ptr plan
43+
//make ptr plan
4444
make_plan(&pbm_forward, &ptr_plan_forward, cluster_id, num_thread);
4545
ptr_plan_forward->in = forward_in;
4646
ptr_plan_forward->out = forward_in;

0 commit comments

Comments
 (0)