Skip to content

Commit 3fd6f4c

Browse files
committed
add barce
1 parent 847ce8f commit 3fd6f4c

File tree

1 file changed

+2
-3
lines changed
  • source/module_hamilt_pw/hamilt_pwdft/operator_pw

1 file changed

+2
-3
lines changed

source/module_hamilt_pw/hamilt_pwdft/operator_pw/veff_pw.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void Veff<OperatorPW<T, Device>>::act(
7373
}
7474
}else if (npol == 2)
7575
{
76-
const Real* current_veff[4]=nullptr;
76+
const Real* current_veff[4]={nullptr};
7777
for (int is = 0; is < 4; is++)
7878
{
7979
current_veff[is] = this->veff + is * this->veff_col;
@@ -82,7 +82,6 @@ void Veff<OperatorPW<T, Device>>::act(
8282
{
8383
wfcpw->recip_to_real<T, Device>(tmpsi_in, this->porter, this->ik);
8484
wfcpw->recip_to_real<T, Device>(tmpsi_in + max_npw, this->porter1, this->ik);
85-
8685
veff_op()(this->ctx, this->veff_col, this->porter, this->porter1, current_veff);
8786
wfcpw->real_to_recip<T, Device>(this->porter, tmhpsi, this->ik, true);
8887
wfcpw->real_to_recip<T, Device>(this->porter1, tmhpsi + max_npw, this->ik, true);
@@ -109,7 +108,7 @@ void Veff<OperatorPW<T, Device>>::act(
109108
}
110109
else if (npol == 2)
111110
{
112-
const Real* current_veff[4]=nullptr;
111+
const Real* current_veff[4]={nullptr};
113112
for (int is = 0; is < 4; is++)
114113
{
115114
current_veff[is] = this->veff + is * this->veff_col;

0 commit comments

Comments
 (0)