Skip to content

Commit 9a28a02

Browse files
committed
test rapidjson
1 parent b714bcf commit 9a28a02

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

source/module_esolver/esolver_fp.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ void ESolver_FP::after_scf(const int istep)
263263
}
264264
}
265265

266-
#ifdef __RAPIDJSON
267-
// add Json of efermi energy converge
268-
Json::add_output_efermi_converge(this->pelec->eferm.ef * ModuleBase::Ry_to_eV, this->conv_esolver);
269-
// add nkstot,nkstot_ibz to output json
270-
int Jnkstot = this->pelec->klist->get_nkstot();
271-
Json::add_nkstot(Jnkstot);
272-
#endif //__RAPIDJSON
266+
// #ifdef __RAPIDJSON
267+
// // add Json of efermi energy converge
268+
// Json::add_output_efermi_converge(this->pelec->eferm.ef * ModuleBase::Ry_to_eV, this->conv_esolver);
269+
// // add nkstot,nkstot_ibz to output json
270+
// int Jnkstot = this->pelec->klist->get_nkstot();
271+
// Json::add_nkstot(Jnkstot);
272+
// #endif //__RAPIDJSON
273273
}
274274

275275
void ESolver_FP::init_after_vc(const Input_para& inp, UnitCell& cell)

source/module_esolver/esolver_ks.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,13 @@ void ESolver_KS<T, Device>::after_scf(const int istep)
688688
{
689689
this->pelec->print_eigenvalue(GlobalV::ofs_running);
690690
}
691+
// #ifdef __RAPIDJSON
692+
// // add Json of efermi energy converge
693+
// Json::add_output_efermi_converge(this->pelec->eferm.ef * ModuleBase::Ry_to_eV, this->conv_esolver);
694+
// // add nkstot,nkstot_ibz to output json
695+
// int Jnkstot = this->pelec->klist->get_nkstot();
696+
// Json::add_nkstot(Jnkstot);
697+
// #endif //__RAPIDJSON
691698
}
692699

693700
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)