Skip to content

Commit 383b0f2

Browse files
committed
modify back paw
1 parent b45b1ea commit 383b0f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/module_hsolver/diago_david.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ int DiagoDavid<T, Device>::diag_once(const HPsiFunc& hpsi_func,
165165
{
166166
if(this->use_paw)
167167
{
168+
#ifdef USE_PAW
169+
GlobalC::paw_cell.paw_nl_psi(1,
170+
reinterpret_cast<const std::complex<double>*>(psi_in + m * ld_psi),
171+
reinterpret_cast<std::complex<double>*>(&this->spsi[m * dim]));
172+
#endif
168173
}
169174
else
170175
{
@@ -186,6 +191,11 @@ int DiagoDavid<T, Device>::diag_once(const HPsiFunc& hpsi_func,
186191
pre_matrix_mv_m[m]);
187192
if(this->use_paw)
188193
{
194+
#ifdef USE_PAW
195+
GlobalC::paw_cell.paw_nl_psi(1,
196+
reinterpret_cast<const std::complex<double>*>(basis + dim * m),
197+
reinterpret_cast<std::complex<double>*>(&this->spsi[m * dim]));
198+
#endif
189199
}
190200
else
191201
{

0 commit comments

Comments
 (0)