Skip to content

Commit d311eb3

Browse files
committed
fix bug (confuse evolve_psi with evolve_phi)
1 parent c87639c commit d311eb3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/source_esolver/esolver_of_tddft.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ namespace ModuleESolver
2222
ESolver_OF_TDDFT::ESolver_OF_TDDFT()
2323
{
2424
this->classname = "ESolver_OF_TDDFT";
25-
this->evolve_psi=new EVOLVE_PSI();
25+
this->evolve_phi=new EVOLVE_PHI();
2626
}
2727

2828
ESolver_OF_TDDFT::~ESolver_OF_TDDFT()
2929
{
30-
delete this->evolve_psi;
30+
delete this->evolve_phi;
3131
for (int is = 0; is < PARAM.inp.nspin; ++is)
3232
{
3333
delete[] this->pphi_td[is];
@@ -102,7 +102,7 @@ void ESolver_OF_TDDFT::runner(UnitCell& ucell, const int istep)
102102
}
103103
else
104104
{
105-
this->evolve_psi->propagate_psi(this->pelec, this->chr, ucell, this->pphi_td, this->pw_rho);
105+
this->evolve_phi->propagate_psi(this->pelec, this->chr, ucell, this->pphi_td, this->pw_rho);
106106
for (int is = 0; is < PARAM.inp.nspin; ++is)
107107
{
108108
for (int ir = 0; ir < pw_rho->nrxx; ++ir)

source/source_esolver/esolver_of_tddft.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define ESOLVER_OF_TDDFT_H
33

44
#include "esolver_of.h"
5-
#include "source_pw/module_ofdft/evolve_psi.h"
5+
#include "source_pw/module_ofdft/evolve_phi.h"
66

77
namespace ModuleESolver
88
{
@@ -16,7 +16,7 @@ class ESolver_OF_TDDFT : public ESolver_OF
1616

1717
protected:
1818
std::complex<double>** pphi_td = nullptr; // pphi[i] = ppsi.get_pointer(i), which will be freed in ~Psi().
19-
EVOLVE_PSI* evolve_psi=nullptr;
19+
EVOLVE_PHI* evolve_phi=nullptr;
2020
};
2121
} // namespace ModuleESolver
2222

0 commit comments

Comments
 (0)