@@ -25,61 +25,6 @@ void ctrl_output_td(const UnitCell& ucell,
2525{
2626 ModuleBase::TITLE (" ModuleIO" , " ctrl_output_td" );
2727
28- // Original code commented out, might need reference later
29-
30- // // (1) Write dipole information
31- // for (int is = 0; is < PARAM.inp.nspin; is++)
32- // {
33- // if (PARAM.inp.out_dipole == 1)
34- // {
35- // std::stringstream ss_dipole;
36- // ss_dipole << PARAM.globalv.global_out_dir << "dipole_s" << is + 1 << ".txt";
37- // ModuleIO::write_dipole(ucell, this->chr.rho_save[is], this->chr.rhopw, is, istep, ss_dipole.str());
38- // }
39- // }
40-
41- // // (2) Write current information
42- // elecstate::DensityMatrix<std::complex<double>, double>* tmp_DM
43- // = dynamic_cast<elecstate::ElecStateLCAO<std::complex<double>>*>(this->pelec)->get_DM();
44- // if (TD_info::out_current)
45- // {
46- // if (TD_info::out_current_k)
47- // {
48- // ModuleIO::write_current_eachk(ucell,
49- // istep,
50- // this->psi,
51- // this->pelec,
52- // this->kv,
53- // this->two_center_bundle_.overlap_orb.get(),
54- // tmp_DM->get_paraV_pointer(),
55- // this->orb_,
56- // this->velocity_mat,
57- // this->RA);
58- // }
59- // else
60- // {
61- // ModuleIO::write_current(ucell,
62- // istep,
63- // this->psi,
64- // this->pelec,
65- // this->kv,
66- // this->two_center_bundle_.overlap_orb.get(),
67- // tmp_DM->get_paraV_pointer(),
68- // this->orb_,
69- // this->velocity_mat,
70- // this->RA);
71- // }
72- // }
73-
74- // // (3) Output file for restart
75- // if (PARAM.inp.out_freq_ion > 0) // default value of out_freq_ion is 0
76- // {
77- // if (istep % PARAM.inp.out_freq_ion == 0)
78- // {
79- // td_p->out_restart_info(istep, elecstate::H_TDDFT_pw::At, elecstate::H_TDDFT_pw::At_laststep);
80- // }
81- // }
82-
8328#ifdef __LCAO
8429 // (1) Write dipole information
8530 for (int is = 0 ; is < PARAM.inp .nspin ; ++is)
0 commit comments