Skip to content

Commit 82ba0b6

Browse files
committed
update this->chr
1 parent 27eae7c commit 82ba0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_esolver/esolver_of.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ void ESolver_OF::after_opt(const int istep, UnitCell& ucell, const bool conv_eso
532532
//------------------------------------------------------------------
533533
if (PARAM.inp.of_ml_gene_data)
534534
{
535-
this->pelec->pot->update_from_charge(this->chr, &ucell); // Hartree + XC + external
535+
this->pelec->pot->update_from_charge(&this->chr, &ucell); // Hartree + XC + external
536536
this->kinetic_potential(this->chr.rho, this->pphi_, this->pelec->pot->get_effective_v()); // (kinetic + Hartree + XC + external) * 2 * phi
537537

538538
const double* vr_eff = this->pelec->pot->get_effective_v(0);

0 commit comments

Comments
 (0)