Skip to content

Commit 35637ce

Browse files
committed
Continue make pretty
1 parent 841586c commit 35637ce

70 files changed

Lines changed: 214 additions & 207 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

source/source_base/kernels/dsp/dsp_connector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void
3030
// CBLAS_TRANSPOSE. So this function is modified.
3131

3232
CBLAS_TRANSPOSE
33-
convertBLASTranspose (const char* blasTrans)
33+
convertBLASTranspose (const char* blasTrans)
3434
{
3535
switch (blasTrans[0])
3636
{

source/source_base/kernels/math_kernel_op.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace ModuleBase
1919

2020
//---------------------------------------------------------------------------------
2121
//-----------------------------0. Tool
22-
//Functions-----------------------------------
22+
// Functions-----------------------------------
2323
//---------------------------------------------------------------------------------
2424
inline std::complex<double>
2525
set_real_tocomplex (const std::complex<double>& x)
@@ -71,7 +71,7 @@ inline float
7171

7272
//---------------------------------------------------------------------------------
7373
//-----------------------------1. Vector
74-
//Operations--------------------------------
74+
// Operations--------------------------------
7575
//---------------------------------------------------------------------------------
7676
template <typename FPTYPE, typename Device>
7777
struct scal_op
@@ -251,7 +251,7 @@ struct dot_real_op
251251

252252
//---------------------------------------------------------------------------------
253253
//-----------------------------2. Matrix
254-
//Operations--------------------------------
254+
// Operations--------------------------------
255255
//---------------------------------------------------------------------------------
256256

257257
// compute y = alpha * op(A) * x + beta * y

source/source_base/kernels/math_kernel_op_vec.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,12 @@ template <typename FPTYPE>
153153
struct dot_real_op<FPTYPE, base_device::DEVICE_CPU>
154154
{
155155
FPTYPE
156-
operator() (const int& dim,
157-
const FPTYPE* psi_L,
158-
const FPTYPE* psi_R,
159-
const bool reduce)
156+
operator() (const int& dim,
157+
const FPTYPE
158+
* psi_L,
159+
const FPTYPE
160+
* psi_R,
161+
const bool reduce)
160162
{
161163
FPTYPE result = BlasConnector::dot (dim, psi_L, 1, psi_R, 1);
162164
if (reduce)
@@ -171,10 +173,10 @@ template <typename FPTYPE>
171173
struct dot_real_op<std::complex<FPTYPE>, base_device::DEVICE_CPU>
172174
{
173175
FPTYPE
174-
operator() (const int& dim,
175-
const std::complex<FPTYPE>* psi_L,
176-
const std::complex<FPTYPE>* psi_R,
177-
const bool reduce)
176+
operator() (const int& dim,
177+
const std::complex<FPTYPE>* psi_L,
178+
const std::complex<FPTYPE>* psi_R,
179+
const bool reduce)
178180
{
179181
// Note that ddot_(2*dim,a,1,b,1) = REAL( zdotc_(dim,a,1,b,1) )
180182
const FPTYPE* pL = reinterpret_cast<const FPTYPE*> (psi_L);

source/source_base/math_polyint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ double
133133
const int iq = static_cast<int> (position);
134134
// if(iq >= table_length-4)
135135
// std::cout << "\n iq = " << iq << " table_length = " <<
136-
//table_length;
136+
// table_length;
137137

138138
if (iq > table_length - 4)
139139
{

source/source_base/module_container/ATen/core/tensor_accessor.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class TensorAccessorBase
3333
using PtrType = typename PtrTraits<T>::PtrType;
3434

3535
AT_HOST_DEVICE
36-
TensorAccessorBase (PtrType data,
37-
const index_t* sizes,
38-
const index_t* strides)
36+
TensorAccessorBase (PtrType data,
37+
const index_t* sizes,
38+
const index_t* strides)
3939
: data_ (data), sizes_ (sizes), strides_ (strides)
4040
{
4141
}
@@ -92,9 +92,7 @@ class TensorAccessor : public TensorAccessorBase<T, N, index_t, PtrTraits>
9292
using PtrType = typename PtrTraits<T>::PtrType;
9393

9494
AT_HOST_DEVICE
95-
TensorAccessor (PtrType data,
96-
const index_t* sizes,
97-
const index_t* strides)
95+
TensorAccessor (PtrType data, const index_t* sizes, const index_t* strides)
9896
: TensorAccessorBase<T, N, index_t, PtrTraits> (data, sizes, strides)
9997
{
10098
}
@@ -125,7 +123,7 @@ class TensorAccessor<T, 1, index_t, PtrTraits>
125123
public:
126124
using PtrType = typename PtrTraits<T>::PtrType;
127125
AT_HOST_DEVICE
128-
TensorAccessor (T* data, const index_t* sizes, const index_t* strides)
126+
TensorAccessor (T* data, const index_t* sizes, const index_t* strides)
129127
: TensorAccessorBase<T, 1, index_t, PtrTraits> (data, sizes, strides)
130128
{
131129
}

source/source_base/module_external/scalapack_connector.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern "C"
5656
int* desca,
5757
int* info);
5858
// void pzpotrf_(char *uplo, int *n, double _Complex *a, int *ia, int *ja,
59-
//int *desca, int *info);
59+
// int *desca, int *info);
6060
void pzpotrf_ (char* uplo,
6161
int* n,
6262
std::complex<double>* a,
@@ -202,8 +202,9 @@ extern "C"
202202
int* jb,
203203
int* descb);
204204
// void pztrmm_(char *side , char *uplo , char *transa , char *diag , int
205-
//*m , int *n , double *alpha , double _Complex *a , int *ia , int *ja ,
206-
//int *desca , double _Complex *b , int *ib , int *jb , int *descb );
205+
//*m , int *n , double *alpha , double _Complex *a , int *ia , int
206+
//*ja , int *desca , double _Complex *b , int *ib , int *jb , int
207+
// *descb );
207208
void pztrmm_ (char* side,
208209
char* uplo,
209210
char* transa,

source/source_base/module_fft/fft_cpu_float.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ void
3636
// fftw_plan_many_dft(int rank,
3737
// const int *n, int howmany,
3838
// fftw_complex *in, const int *inembed,
39-
//int istride, int idist, fftw_complex *out, const int *onembed, int
40-
//ostride, int odist, int sign, unsigned flags);
39+
// int istride, int idist, fftw_complex
40+
// *out, const int *onembed, int ostride, int odist, int sign, unsigned
41+
// flags);
4142

4243
this->planfzfor = fftwf_plan_many_dft (1,
4344
&this->nz,

source/source_basis/module_ao/ORB_atomic_lm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ void
360360
// }
361361
// Method 1
362362
// ModuleBase::Mathzone_Add1::Uni_Deriv_Phi (psi_uniform, nr_uniform,
363-
//dr_uniform, 1, dpsi_uniform); ModuleBase::Mathzone_Add1::Uni_Deriv_Phi
363+
// dr_uniform, 1, dpsi_uniform); ModuleBase::Mathzone_Add1::Uni_Deriv_Phi
364364
//(psi_uniform, nr_uniform, dr_uniform, 2, ddpsi_uniform);
365365

366366
double* rad = new double[nr_uniform];
@@ -370,7 +370,7 @@ void
370370
}
371371

372372
// ModuleBase::Mathzone_Add1::SplineD2 (rad, psi_uniform, nr_uniform, 0.0,
373-
//0.0, ddpsi_uniform);
373+
// 0.0, ddpsi_uniform);
374374
double* tmp = new double[nr_uniform];
375375
ModuleBase::Mathzone_Add1::Cubic_Spline_Interpolation (
376376
ModuleBase::GlobalFunc::VECTOR_TO_PTR (r_radial),

source/source_basis/module_ao/ORB_read.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void
157157
GlobalV::ofs_running << " orbital file: " << orbital_file[it]
158158
<< std::endl;
159159
// GlobalV::ofs_running << " nonlocal file: " <<
160-
//nonlocal_file[it] << std::endl;
160+
// nonlocal_file[it] << std::endl;
161161
}
162162
return;
163163
}

source/source_basis/module_ao/parallel_orbitals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Parallel_Orbitals : public Parallel_2D
4444
std::ofstream& ofs_warning);
4545

4646
///@brief set the desc[9] of the 2D-block-cyclic distribution of
47-
///wavefunction and Eij
47+
/// wavefunction and Eij
4848
void set_desc_wfc_Eij (const int& nbasis,
4949
const int& nbands,
5050
const int& lld);

0 commit comments

Comments
 (0)