Skip to content

Commit 7cc5469

Browse files
committed
remove mutable
1 parent f6ca1f1 commit 7cc5469

File tree

1 file changed

+4
-5
lines changed
  • source/module_basis/module_pw/module_fft

1 file changed

+4
-5
lines changed

source/module_basis/module_pw/module_fft/fft_dsp.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,16 @@ class FFT_DSP : public FFT_BASE<FPTYPE>
6565
void fft3D_backward(std::complex<FPTYPE>* in,
6666
std::complex<FPTYPE>* out) const override;
6767
public:
68-
int nxyz;
68+
int nxyz=0;
6969
INT cluster_id=0;
70-
mutable INT b_id;
70+
mutable INT b_id=0;
7171
mutable INT thread_id_for=0;
7272
PLAN* ptr_plan_forward=nullptr;
7373
PLAN* ptr_plan_backward=nullptr;
7474
mutable unsigned long args_for[2];
7575
mutable unsigned long args_back[2];
76-
mutable E * forward_in;
77-
mutable E * convert2;
78-
std::complex<float>* c_auxr_3d = nullptr; // fft space
76+
E * forward_in=nullptr;
77+
std::complex<float>* c_auxr_3d = nullptr; // fft space
7978
std::complex<double>* z_auxr_3d = nullptr; // fft space
8079

8180
};

0 commit comments

Comments
 (0)