Skip to content

Commit a917e0b

Browse files
committed
type transformation
1 parent 22b88fc commit a917e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/source_pw/module_ofdft/evolve_ofdft.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void Evolve_OFDFT::cal_CD_potential(std::vector<std::complex<double>> psi_,
185185

186186
for (int ir = 0; ir < pw_rho->nrxx; ++ir)
187187
{
188-
rpot(0, ir) -= mCD_para*std::real(2.0*rCDPotential[ir]*std::pow(ModuleBase::PI,3) / (2*std::pow(kF_r[ir],2)));
188+
rpot(0, ir) -= mCD_para*2.0*std::real(rCDPotential[ir])*std::pow(ModuleBase::PI,3) / (2.0*std::pow(std::real(kF_r[ir]),2));
189189
}
190190
delete[] recipCurrent_x;
191191
delete[] recipCurrent_y;

0 commit comments

Comments
 (0)