Skip to content

Commit d7589cd

Browse files
committed
fix bug in compute
1 parent ea9a258 commit d7589cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/source_pw/module_stodft/sto_iter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,9 @@ void Stochastic_Iter<T, Device>::sum_stoeband(Stochastic_WF<T, Device>& stowf,
568568
const double kweight = this->pkv->wk[ik];
569569
T* hshchi = nullptr;
570570
#ifdef __DSP
571-
base_device::memory::resize_memory_op_mt<T, Device>()(hshchi);
571+
base_device::memory::resize_memory_op_mt<T, Device>()(hshchi, nchip_ik * npwx);
572572
#else
573-
resmem_complex_op()(hshchi);
573+
resmem_complex_op()(hshchi, nchip_ik * npwx);
574574
#endif
575575
T* tmpin = stowf.shchi->get_pointer();
576576
T* tmpout = hshchi;

0 commit comments

Comments
 (0)