@@ -20,8 +20,22 @@ void ModuleIO::write_hsk(
2020 const Parallel_Orbitals &pv,
2121 const bool gamma_only,
2222 const bool out_app_flag,
23- const int istep)
23+ const int istep,
24+ std::ofstream &ofs_running)
2425{
26+
27+ ofs_running << " \n WRITE H(k) OR S(k) BEGINS" << std::endl;
28+ ofs_running << " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
29+ " >>>>>>>>>>>>>>>>>>>>>>>>>" << std::endl;
30+ ofs_running << " | "
31+ " |" << std::endl;
32+ ofs_running << " | Write Hamiltonian matrix H(k) or overlap matrix S(k) in numerical |" << std::endl;
33+ ofs_running << " | atomic orbitals at each k-point. |" << std::endl;
34+ ofs_running << " | "
35+ " |" << std::endl;
36+ ofs_running << " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
37+ " >>>>>>>>>>>>>>>>>>>>>>>>>" << std::endl;
38+
2539 for (int ik = 0 ; ik < nks; ++ik)
2640 {
2741 p_hamilt->updateHk (ik);
@@ -40,8 +54,6 @@ void ModuleIO::write_hsk(
4054 " hk" ," nao" ,ik,ik2iktot,nspin,nkstot,
4155 out_label,out_app_flag,gamma_only,istep);
4256
43- std::cout << " the filename is " << h_fn << std::endl;
44-
4557 ModuleIO::save_mat (istep,
4658 h_mat.p ,
4759 PARAM.globalv .nlocal ,
@@ -62,12 +74,11 @@ void ModuleIO::write_hsk(
6274 continue ;
6375 }
6476
65-
6677 std::string s_fn = ModuleIO::filename_output (global_out_dir,
6778 " sk" ," nao" ,ik,ik2iktot,nspin,nkstot,
6879 out_label,out_app_flag,gamma_only,istep);
6980
70- std::cout << " the filename is " << s_fn << std::endl;
81+ ofs_running << " The output filename is " << s_fn << std::endl;
7182
7283 ModuleIO::save_mat (istep,
7384 s_mat.p ,
@@ -99,7 +110,6 @@ void ModuleIO::save_mat(const int istep,
99110{
100111 ModuleBase::TITLE (" ModuleIO" , " save_mat" );
101112 ModuleBase::timer::tick (" ModuleIO" , " save_mat" );
102- ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running, " Dimension: " , dim);
103113
104114 // print out .dat file
105115 if (bit)
0 commit comments