@@ -64,6 +64,7 @@ void K_Vectors::set(const ModuleSymmetry::Symmetry& symm,
6464 const int & nspin_in,
6565 const ModuleBase::Matrix3& reciprocal_vec,
6666 const ModuleBase::Matrix3& latvec,
67+ const UnitCell& ucell,
6768 std::ofstream& ofs)
6869{
6970 ModuleBase::TITLE (" K_Vectors" , " set" );
@@ -113,7 +114,7 @@ void K_Vectors::set(const ModuleSymmetry::Symmetry& symm,
113114 {
114115 bool match = true ;
115116 // calculate kpoints in IBZ and reduce kpoints according to symmetry
116- this ->ibz_kpoint (symm, ModuleSymmetry::Symmetry::symm_flag, skpt1, GlobalC:: ucell, match);
117+ this ->ibz_kpoint (symm, ModuleSymmetry::Symmetry::symm_flag, skpt1, ucell, match);
117118#ifdef __MPI
118119 Parallel_Common::bcast_bool (match);
119120#endif
@@ -128,7 +129,7 @@ void K_Vectors::set(const ModuleSymmetry::Symmetry& symm,
128129 std::cout << " Automatically set symmetry to 0 and continue ..." << std::endl;
129130 ModuleSymmetry::Symmetry::symm_flag = 0 ;
130131 match = true ;
131- this ->ibz_kpoint (symm, ModuleSymmetry::Symmetry::symm_flag, skpt1, GlobalC:: ucell, match);
132+ this ->ibz_kpoint (symm, ModuleSymmetry::Symmetry::symm_flag, skpt1, ucell, match);
132133 } else {
133134 ModuleBase::WARNING_QUIT (" K_Vectors::ibz_kpoint" ,
134135 " Possible solutions: \n \
0 commit comments