Skip to content

Commit 27eae7c

Browse files
committed
fix problem in ML_KEDF
1 parent 9f0f689 commit 27eae7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_esolver/esolver_ks_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ void ESolver_KS_PW<T, Device>::after_all_runners(UnitCell& ucell)
876876
// generate training data for ML-KEDF
877877
if (PARAM.inp.of_ml_gene_data == 1)
878878
{
879-
this->pelec->pot->update_from_charge(this->chr, &ucell);
879+
this->pelec->pot->update_from_charge(&this->chr, &ucell);
880880

881881
ML_data ml_data;
882882
ml_data.set_para(this->chr.nrxx,

0 commit comments

Comments
 (0)