@@ -55,7 +55,7 @@ void IState_Charge::begin(Gint_Gamma& gg,
5555{
5656 ModuleBase::TITLE (" IState_Charge" , " begin" );
5757
58- std::cout << " Calculate |psi(i)|^2 for selected bands (band-decomposed charge densities, gamma only)."
58+ std::cout << " Calculate |psi(i)|^2 for selected electronic states ( gamma only)."
5959 << std::endl;
6060
6161 // Determine the mode based on the input parameters
@@ -77,8 +77,8 @@ void IState_Charge::begin(Gint_Gamma& gg,
7777 // if ucell is even, it's also correct.
7878 // +1.0e-8 in case like (2.999999999+1)/2
7979 const int fermi_band = static_cast <int >((nelec + 1 ) / 2 + 1.0e-8 );
80- std::cout << " number of electrons = " << nelec << std::endl;
81- std::cout << " number of occupied bands = " << fermi_band << std::endl;
80+ GlobalV::ofs_running << " number of electrons = " << nelec << std::endl;
81+ GlobalV::ofs_running << " number of occupied bands = " << fermi_band << std::endl;
8282
8383 // Set this->bands_picked_ according to the mode
8484 select_bands (nbands_istate, out_pchg, nbands, nelec, mode, fermi_band);
@@ -101,7 +101,7 @@ void IState_Charge::begin(Gint_Gamma& gg,
101101 ModuleBase::GlobalFunc::ZEROS (rho[is], rhopw_nrxx);
102102 }
103103
104- std::cout << " Performing grid integral over real space grid for band " << ib + 1 << " ..." << std::endl;
104+ // std::cout << " Performing grid integral over real space grid for band " << ib + 1 << "..." << std::endl;
105105
106106 DM.init_DMR (GridD_in, ucell_in);
107107 DM.cal_DMR ();
@@ -120,21 +120,22 @@ void IState_Charge::begin(Gint_Gamma& gg,
120120 ModuleBase::GlobalFunc::DCOPY (rho[is], rho_save[is].data (), rhopw_nrxx); // Copy data
121121 }
122122
123- std::cout << " Writing cube files..." ;
124123
125124 for (int is = 0 ; is < nspin; ++is)
126125 {
127126 // ssc should be inside the inner loop to reset the string stream each time
128127 std::stringstream ssc;
129128 ssc << global_out_dir << " pchgs" << is + 1 << " i" << ib + 1 << " .cube" ;
130129
130+ GlobalV::ofs_running << " Writing cube file " << ssc.str () << std::endl;
131+
131132 // Use a const vector to store efermi for all spins, replace the original implementation:
132133 // const double ef_tmp = pelec->eferm.get_efval(is);
133134 double ef_spin = ef_all_spin[is];
134135 ModuleIO::write_vdata_palgrid (pgrid, rho_save[is].data (), is, nspin, 0 , ssc.str (), ef_spin, ucell_in);
135136 }
136137
137- std::cout << " Complete!" << std::endl;
138+ // std::cout << " Complete!" << std::endl;
138139 }
139140 }
140141
@@ -292,7 +293,7 @@ void IState_Charge::begin(Gint_k& gk,
292293 }
293294
294295 // Symmetrize the charge density, otherwise the results are incorrect if the symmetry is on
295- std::cout << " Symmetrizing band-decomposed charge density..." << std::endl;
296+ // std::cout << " Symmetrizing band-decomposed charge density..." << std::endl;
296297 Symmetry_rho srho;
297298 for (int is = 0 ; is < nspin; ++is)
298299 {
0 commit comments