33#include " ../src_parallel/parallel_global.h"
44#include " ../module_base/global_function.h"
55#include " iostream"
6+ #include " ../module_base/timer.h"
67
78
89namespace ModulePW
@@ -24,6 +25,7 @@ namespace ModulePW
2425//
2526void PW_Basis::distribution_method1 ()
2627{
28+ ModuleBase::timer::tick (" PW_Basis" , " distributeg_method1" );
2729
2830 // initial the variables needed by all proc.
2931 int tot_npw = 0 ; // total number of planewaves.
@@ -48,14 +50,14 @@ void PW_Basis::distribution_method1()
4850 std::cout << " The first step done\n " ;
4951 std::cout << " tot_npw " << tot_npw << ' \n ' ;
5052 std::cout << " this->nstot " << this ->nstot << ' \n ' ;
51- for (int ix = 0 ; ix < nx; ++ix)
52- {
53- for (int iy = 0 ; iy < ny; ++iy)
54- {
55- std::cout << st_length2D[ix * ny + iy] << std::setw (4 );
56- }
57- std::cout << ' \n ' ;
58- }
53+ // for (int ix = 0; ix < nx; ++ix)
54+ // {
55+ // for (int iy = 0; iy < ny; ++iy)
56+ // {
57+ // std::cout << st_length2D[ix * ny + iy] << std::setw(4);
58+ // }
59+ // std::cout << '\n';
60+ // }
5961 // ------------------------------------------------------------
6062#ifdef __MPI
6163 // Parallel line
@@ -90,9 +92,9 @@ void PW_Basis::distribution_method1()
9092
9193 // for test -----------------------------------------------------------------------------
9294 std::cout << " The 3-1 step done\n " ;
93- std::cout << " st_i " ;
94- for (int is = 0 ; is < this ->nstot ; ++is) cout << st_i[is] << setw (4 ) ;
95- std::cout << std::endl;
95+ // std::cout << "st_i ";
96+ // for (int is = 0; is < this->nstot; ++is) cout << st_i[is] << setw(4) ;
97+ // std::cout << std::endl;
9698 // --------------------------------------------------------------------------------------
9799
98100 this ->get_istot2bigixy (st_i, st_j);
@@ -186,7 +188,7 @@ void PW_Basis::distribution_method1()
186188 // for test ----------------------------------------------
187189 if (poolrank==0 ) std::cout << " The fifth step done\n " ;
188190 // -------------------------------------------------------
189-
191+ ModuleBase::timer::tick ( " PW_Basis " , " distributeg_method1 " );
190192 return ;
191193}
192194
@@ -261,7 +263,6 @@ void PW_Basis::collect_st(
261263 temp_st_j[is] = y;
262264 temp_st_length[is] = static_cast <double >(st_length2D[index]);
263265 ++is;
264- std::cout << " is " << is << ' \n ' ;
265266 }
266267 }
267268 }
@@ -281,9 +282,9 @@ void PW_Basis::collect_st(
281282 st_i[istot] = temp_st_i[st_sorted_index[istot]];
282283 st_j[istot] = temp_st_j[st_sorted_index[istot]];
283284 }
284- std::cout << " st_length " ;
285- for (int is = 0 ; is < this ->nstot ; ++is) std::cout << st_length[is] << std::setw (4 );
286- std::cout << " \n " ;
285+ // std::cout << "st_length ";
286+ // for (int is = 0; is < this->nstot; ++is) std::cout << st_length[is] << std::setw(4);
287+ // std::cout << "\n";
287288
288289 delete[] temp_st_i;
289290 delete[] temp_st_j;
@@ -348,10 +349,10 @@ void PW_Basis::divide_sticks(
348349 this ->ixy2ip [st_i[is] * this ->ny + st_j[is]] = ipmin;
349350 }
350351 // for test --------------------------------------------------------------------------
351- for (int i = 0 ; i < this ->poolnproc ; ++i) std::cout<<this ->nstnz_per [i]<<std::setw (4 );
352- std::cout<<" \n " ;
353- for (int i = 0 ; i < this ->poolnproc ; ++i) std::cout<<nst_per[i]<<std::setw (4 );
354- std::cout<<" \n " ;
352+ // for(int i = 0; i < this->poolnproc; ++i) std::cout<<this->nstnz_per[i]<<std::setw(4);
353+ // std::cout<<"\n";
354+ // for(int i = 0; i < this->poolnproc; ++i) std::cout<<nst_per[i]<<std::setw(4);
355+ // std::cout<<"\n";
355356 // -----------------------------------------------------------------------------------
356357 for (int ip = 1 ; ip < poolnproc; ++ip)
357358 {
0 commit comments