Skip to content

Commit 8cf1363

Browse files
committed
fix bug maybe
1 parent fcc167f commit 8cf1363

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/module_hsolver/diago_iter_assist.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ void DiagoIterAssist<T, Device>::diagH_subspace_init(hamilt::Hamilt<T, Device>*
199199

200200
if (base_device::get_device_type(ctx) == base_device::GpuDevice)
201201
{
202-
psi::Psi<T, Device> psi_temp(1, 1, psi_nc, &evc.get_ngk(0), dmin, true);
202+
// psi::Psi<T, Device> psi_temp(1, 1, psi_nc, &evc.get_ngk(0), dmin, true);
203+
psi::Psi<T, Device> psi_temp(1, 1, psi_nc, &evc.get_ngk(0));
203204
T* ppsi = psi_temp.get_pointer();
204205
// hpsi and spsi share the temp space
205206
T* temp = nullptr;
@@ -246,7 +247,8 @@ void DiagoIterAssist<T, Device>::diagH_subspace_init(hamilt::Hamilt<T, Device>*
246247
}
247248
else if (base_device::get_device_type(ctx) == base_device::CpuDevice)
248249
{
249-
psi::Psi<T, Device> psi_temp(1, nstart, psi_nc, &evc.get_ngk(0), dmin, true);
250+
// psi::Psi<T, Device> psi_temp(1, nstart, psi_nc, &evc.get_ngk(0), dmin, true);
251+
psi::Psi<T, Device> psi_temp(1, nstart, psi_nc, &evc.get_ngk(0));
250252
T* ppsi = psi_temp.get_pointer();
251253
syncmem_complex_op()(ctx, ctx, ppsi, psi, psi_temp.size());
252254
// hpsi and spsi share the temp space

0 commit comments

Comments
 (0)