Skip to content

Commit

Permalink
Optimize the expression form of standard output
Browse files Browse the repository at this point in the history
  • Loading branch information
AsTonyshment committed Sep 24, 2024
1 parent 955e65f commit 69186c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/module_io/get_pchg_lcao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void IState_Charge::begin(Gint_Gamma& gg,
{
ModuleBase::TITLE("IState_Charge", "begin");

std::cout << " Perform |psi(i)|^2 for selected bands (band-decomposed charge densities, gamma only)." << std::endl;
std::cout << " Calculate |psi(i)|^2 for selected bands (band-decomposed charge densities, gamma only)." << std::endl;

int mode = 0;
if (nbands_istate > 0 && static_cast<int>(out_pchg.size()) == 0)
Expand Down Expand Up @@ -189,7 +189,7 @@ void IState_Charge::begin(Gint_k& gk,
{
ModuleBase::TITLE("IState_Charge", "begin");

std::cout << " Perform |psi(i)|^2 for selected bands (band-decomposed charge densities, multi-k)." << std::endl;
std::cout << " Calculate |psi(i)|^2 for selected bands (band-decomposed charge densities, multi-k)." << std::endl;

int mode = 0;
if (nbands_istate > 0 && static_cast<int>(out_pchg.size()) == 0)
Expand Down
6 changes: 3 additions & 3 deletions source/module_io/get_wf_lcao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void IState_Envelope::begin(const psi::Psi<double>* psid,
{
ModuleBase::TITLE("IState_Envelope", "begin");

std::cout << " Perform |psi(i, r)|, Re[psi(i, r)], Im[psi(i, r)] for selected bands (gamma only)." << std::endl;
std::cout << " Calculate |psi(i, r)|, Re[psi(i, r)], Im[psi(i, r)] for selected bands (gamma only)." << std::endl;

// if ucell is odd, it's correct,
// if ucell is even, it's also correct.
Expand Down Expand Up @@ -299,7 +299,7 @@ void IState_Envelope::begin(const psi::Psi<std::complex<double>>* psi,
{
ModuleBase::TITLE("IState_Envelope", "begin");

std::cout << " Perform |psi(i, r)|, Re[psi(i, r)], Im[psi(i, r)] for selected bands (multi-k)." << std::endl;
std::cout << " Calculate |psi(i, r)|, Re[psi(i, r)], Im[psi(i, r)] for selected bands (multi-k)." << std::endl;

// if ucell is odd, it's correct,
// if ucell is even, it's also correct.
Expand Down Expand Up @@ -361,7 +361,7 @@ void IState_Envelope::begin(const psi::Psi<std::complex<double>>* psi,
const int ispin = kv.isk[ik];
ModuleBase::GlobalFunc::ZEROS(pes_->charge->rho[ispin],
wfcpw->nrxx); // terrible, you make changes on another instance's data???
std::cout << " Perform envelope function for kpoint " << ik + 1 << ", band" << ib + 1 << std::endl;
std::cout << " Calculate envelope function for kpoint " << ik + 1 << ", band" << ib + 1 << std::endl;
// 2d-to-grid conversion is unified into `wfc_2d_to_grid`.
psi->fix_k(ik);
#ifdef __MPI // need to deal with NSPIN=4 !!!!
Expand Down

0 comments on commit 69186c8

Please sign in to comment.