Skip to content

Commit b2bf7aa

Browse files
committed
update operator.cpp call_act func
1 parent 1a23ad1 commit b2bf7aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/module_hamilt_general/operator.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ typename Operator<T, Device>::hpsi_info Operator<T, Device>::hPsi(hpsi_info& inp
6161
}
6262

6363
auto call_act = [&, this](const Operator* op, const bool& is_first_node) -> void {
64+
6465
// a "psi" with the bands of needed range
65-
psi::Psi<T, Device> psi_wrapper(const_cast<T*>(tmpsi_in), 1, nbands, psi_input->get_nbasis());
66+
psi::Psi<T, Device> psi_wrapper(const_cast<T*>(tmpsi_in), 1, nbands, psi_input->get_nbasis(), nullptr, true);
67+
68+
6669
switch (op->get_act_type())
6770
{
6871
case 2:

0 commit comments

Comments
 (0)