diff --git a/source/source_lcao/module_ri/exx_lip.hpp b/source/source_lcao/module_ri/exx_lip.hpp index c5cb36b27a..8a8554e931 100644 --- a/source/source_lcao/module_ri/exx_lip.hpp +++ b/source/source_lcao/module_ri/exx_lip.hpp @@ -473,10 +473,12 @@ void Exx_Lip::exx_energy_cal() template void Exx_Lip::write_q_pack() const { - ModuleBase::timer::start("Exx_Lip", "write_q_pack"); - if (PARAM.inp.out_chg[0] == 0) - { return; } + { + return; + } + + ModuleBase::timer::start("Exx_Lip", "write_q_pack"); if (!GlobalV::RANK_IN_POOL) {