Skip to content

Commit 6772c4e

Browse files
author
chengleizheng
committed
style: split single-line variable declarations
1 parent 27d7bad commit 6772c4e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/source_estate/elecstate_pw.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ void ElecStatePW<T, Device>::cal_becsum(const psi::Psi<T, Device>& psi)
356356
std::vector<T> auxk1_host(nbands * nh_atom);
357357
std::vector<T> auxk2_host(nbands * nh_atom);
358358
// device buffers allocated once per atom type
359-
T *aux_gk = nullptr, *auxk1 = nullptr, *auxk2 = nullptr;
359+
T *aux_gk = nullptr;
360+
T *auxk1 = nullptr;
361+
T *auxk2 = nullptr;
360362
resmem_complex_op()(auxk1, nbands * nh_atom, "ElecState<PW>::auxk1");
361363
resmem_complex_op()(auxk2, nbands * nh_atom, "ElecState<PW>::auxk2");
362364
resmem_complex_op()(aux_gk, nh_atom * nh_atom * npol * npol, "ElecState<PW>::aux_gk");

0 commit comments

Comments
 (0)