Skip to content

Commit 4049c76

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 5304827 commit 4049c76

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

source/module_base/module_fft/fft_base.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ void FFT_BASE<FPTYPE>::initfft(int nx_in, int ny_in, int nz_in, int lixy_in, int
1818
this->fftny = this->ny = ny_in;
1919
if (this->gamma_only)
2020
{
21-
if (xprime)
21+
if (xprime) {
2222
this->fftnx = int(nx / 2) + 1;
23-
else
23+
} else {
2424
this->fftny = int(ny / 2) + 1;
25+
}
2526
}
2627
this->nz = nz_in;
2728
this->ns = ns_in;

source/module_base/module_fft/fft_temp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class FFT_TEMP
5454

5555
private:
5656
int fft_mode = 0; ///< fftw mode 0: estimate, 1: measure, 2: patient, 3: exhaustive
57-
bool float_flag=0;
58-
bool double_flag=0;
57+
bool float_flag=false;
58+
bool double_flag=false;
5959
FFT_BASE<float>* fft_float=nullptr;
6060
FFT_BASE<double>* fft_double=nullptr;
6161

0 commit comments

Comments
 (0)