99class Parallel_Kpoints
1010{
1111 public:
12- Parallel_Kpoints ();
13- ~Parallel_Kpoints ();
12+ Parallel_Kpoints (){} ;
13+ ~Parallel_Kpoints (){} ;
1414
1515 void kinfo (int & nkstot_in,
1616 const int & kpar_in,
@@ -28,9 +28,9 @@ class Parallel_Kpoints
2828 const ModuleBase::realArray& a,
2929 const ModuleBase::realArray& b,
3030 const int & ik);
31- void pool_collection (std::complex <double >* value, const ModuleBase::ComplexArray& w, const int & ik);
31+ void pool_collection (std::complex <double >* value, const ModuleBase::ComplexArray& w, const int & ik) const ;
3232 template <class T , class V >
33- void pool_collection_aux (T* value, const V& w, const int & dim, const int & ik);
33+ void pool_collection_aux (T* value, const V& w, const int & dim, const int & ik) const ;
3434#ifdef __MPI
3535 /* *
3636 * @brief gather kpoints from all processors
@@ -46,8 +46,8 @@ class Parallel_Kpoints
4646 // int* nproc_pool = nullptr; it is not used
4747
4848 // inforamation about kpoints, dim: KPAR
49- std::vector<int > nks_pool; // number of k-points in each pool
50- std::vector<int > startk_pool; // the first k-point in each pool
49+ std::vector<int > nks_pool; // number of k-points in each pool, here use k-points without spin
50+ std::vector<int > startk_pool; // the first k-point in each pool, here use k-points without spin
5151
5252 // information about which pool each k-point belongs to,
5353 std::vector<int > whichpool; // whichpool[k] : the pool which k belongs to, dim: nkstot_np
0 commit comments