Skip to content

Commit abb36d4

Browse files
author
chengleizheng
committed
minor formatting cleanup
1 parent a0ad57a commit abb36d4

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

source/source_pw/module_pwdft/hamilt_pw.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,21 +252,21 @@ void HamiltPW<T, Device>::sPsi(const T* psi_in, // psi
252252
const int nh = atoms->ncpp.nh;
253253
T* qqc = nullptr;
254254
resmem_complex_op()(qqc, nh * nh, "Hamilt<PW>::qqc");
255-
std::vector<T> qqc_host(nh*nh);
256-
const double* qq_now_host = &this->ppcell->qq_nt.ptr[it * this->ppcell->nhm * this->ppcell->nhm];
257-
255+
std::vector<T> qqc_host(nh*nh);
256+
const double* qq_now_host = &this->ppcell->qq_nt.ptr[it * this->ppcell->nhm * this->ppcell->nhm];
257+
258258
for (int i = 0; i < nh; i++)
259259
{
260260
for (int j = 0; j < nh; j++)
261261
{
262-
const int source_index = i * this->ppcell->nhm + j;
263-
const int target_index = i * nh + j;
262+
const int source_index = i * this->ppcell->nhm + j;
263+
const int target_index = i * nh + j;
264264

265-
qqc_host[target_index] = static_cast<Real>(qq_now_host[source_index]) * one;
265+
qqc_host[target_index] = static_cast<Real>(qq_now_host[source_index]) * one;
266266
}
267267
}
268-
269-
syncmem_complex_h2d_op()(qqc, qqc_host.data(), qqc_host.size());
268+
269+
syncmem_complex_h2d_op()(qqc, qqc_host.data(), qqc_host.size());
270270

271271
for (int ia = 0; ia < atoms->na; ia++)
272272
{

0 commit comments

Comments
 (0)