@@ -37,7 +37,22 @@ void Exx_LRI_Interface<T, Tdata>::read_Hexxs_cereal(const std::string& file_name
3737}
3838
3939template <typename T, typename Tdata>
40- void Exx_LRI_Interface<T, Tdata>::exx_beforescf(const K_Vectors& kv, const Charge_Mixing& chgmix, const UnitCell& ucell, const Parallel_2D& pv, const LCAO_Orbitals& orb)
40+ void Exx_LRI_Interface<T, Tdata>::exx_before_all_runners(const K_Vectors& kv, const UnitCell& ucell, const Parallel_2D& pv)
41+ {
42+ // initialize the rotation matrix in AO representation
43+ this ->exx_spacegroup_symmetry = (PARAM.inp .nspin < 4 && ModuleSymmetry::Symmetry::symm_flag == 1 );
44+ if (this ->exx_spacegroup_symmetry )
45+ {
46+ const std::array<int , 3 >& period = RI_Util::get_Born_vonKarmen_period (kv);
47+ this ->symrot_ .find_irreducible_sector (ucell.symm , ucell.atoms , ucell.st ,
48+ RI_Util::get_Born_von_Karmen_cells (period), period, ucell.lat );
49+ // this->symrot_.set_Cs_rotation(this->exx_ptr->get_abfs_nchis());
50+ this ->symrot_ .cal_Ms (kv, ucell, pv);
51+ }
52+ }
53+
54+ template <typename T, typename Tdata>
55+ void Exx_LRI_Interface<T, Tdata>::exx_beforescf(const K_Vectors& kv, const Charge_Mixing& chgmix, const UnitCell& ucell, const LCAO_Orbitals& orb)
4156{
4257#ifdef __MPI
4358 if (GlobalC::exx_info.info_global .cal_exx )
@@ -54,17 +69,6 @@ void Exx_LRI_Interface<T, Tdata>::exx_beforescf(const K_Vectors& kv, const Charg
5469 XC_Functional::set_xc_type (" scan" );
5570 }
5671 }
57- // initialize the rotation matrix in AO representation
58- this ->exx_spacegroup_symmetry = (PARAM.inp .nspin < 4 && ModuleSymmetry::Symmetry::symm_flag == 1 );
59- if (this ->exx_spacegroup_symmetry )
60- {
61- const std::array<int , 3 >& period = RI_Util::get_Born_vonKarmen_period (kv);
62- this ->symrot_ .find_irreducible_sector (ucell.symm , ucell.atoms , ucell.st ,
63- RI_Util::get_Born_von_Karmen_cells (period), period, ucell.lat );
64- // this->symrot_.set_Cs_rotation(this->exx_ptr->get_abfs_nchis());
65- this ->symrot_ .cal_Ms (kv, ucell, pv);
66- }
67-
6872 this ->exx_ptr ->cal_exx_ions (PARAM.inp .out_ri_cv );
6973 }
7074
0 commit comments