Skip to content

Commit d38224d

Browse files
committed
details
1 parent 5acb224 commit d38224d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/source_esolver/esolver_of_tddft.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ void ESolver_OF_TDDFT::runner(UnitCell& ucell, const int istep)
7777
// find the optimization direction and step lenghth theta according to the potential
7878
this->optimize(ucell);
7979

80-
std::cout<<"optimize------"<<std::endl;
81-
8280
// update the rho and phi based on the direction and theta
8381
this->update_rho();
8482

@@ -102,7 +100,7 @@ void ESolver_OF_TDDFT::runner(UnitCell& ucell, const int istep)
102100
{
103101
for (int ir = 0; ir < this->pw_rho->nrxx; ++ir)
104102
{
105-
pphi_[is][ir]=abs(pphi_td[is][ir]);
103+
pphi_[is][ir]=std::abs(pphi_td[is][ir]);
106104
}
107105
}
108106
conv_esolver=true;

0 commit comments

Comments
 (0)