Skip to content

Commit ee3a5a1

Browse files
committed
update formats in rt-TDDFT
1 parent a288418 commit ee3a5a1

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

source/module_esolver/esolver_ks_lcao_tddft.cpp

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,24 +172,23 @@ void ESolver_KS_LCAO_TDDFT<Device>::iter_finish(
172172
// print occupation of each band
173173
if (iter == 1 && istep <= 2)
174174
{
175-
GlobalV::ofs_running << "---------------------------------------------------------------"
176-
"---------------------------------"
175+
GlobalV::ofs_running << " ---------------------------------------------------------"
177176
<< std::endl;
178-
GlobalV::ofs_running << "occupation : " << std::endl;
179-
GlobalV::ofs_running << "ik iband occ " << std::endl;
180-
GlobalV::ofs_running << std::setprecision(6);
177+
GlobalV::ofs_running << " occupations of electrons" << std::endl;
178+
GlobalV::ofs_running << " k-point state occupation" << std::endl;
181179
GlobalV::ofs_running << std::setiosflags(std::ios::showpoint);
180+
GlobalV::ofs_running << std::left;
181+
std::setprecision(6);
182182
for (int ik = 0; ik < kv.get_nks(); ik++)
183183
{
184184
for (int ib = 0; ib < PARAM.inp.nbands; ib++)
185185
{
186-
std::setprecision(6);
187-
GlobalV::ofs_running << ik + 1 << " " << ib + 1 << " " << this->pelec->wg(ik, ib) << std::endl;
186+
GlobalV::ofs_running << " " << std::setw(9)
187+
<< ik+1 << std::setw(8) << ib + 1
188+
<< std::setw(12) << this->pelec->wg(ik, ib) << std::endl;
188189
}
189190
}
190-
GlobalV::ofs_running << std::endl;
191-
GlobalV::ofs_running << "---------------------------------------------------------------"
192-
"---------------------------------"
191+
GlobalV::ofs_running << " ---------------------------------------------------------"
193192
<< std::endl;
194193
}
195194

@@ -324,6 +323,8 @@ void ESolver_KS_LCAO_TDDFT<Device>::update_pot(UnitCell& ucell,
324323
}
325324

326325
// print "eigen value" for tddft
326+
// it seems uncessary to print out E_ii because the band energies are printed
327+
/*
327328
if (conv_esolver)
328329
{
329330
GlobalV::ofs_running << "----------------------------------------------------------"
@@ -346,6 +347,7 @@ void ESolver_KS_LCAO_TDDFT<Device>::update_pot(UnitCell& ucell,
346347
}
347348
}
348349
}
350+
*/
349351
}
350352

351353
template <typename Device>

0 commit comments

Comments
 (0)