We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 451060b commit 7b7bd7bCopy full SHA for 7b7bd7b
source/module_hamilt/operator.h
@@ -73,7 +73,7 @@ class Operator
73
std::complex<double>* get_hpsi(const hpsi_info& info)const
74
{
75
const int nbands_range = (std::get<1>(info).range_2 - std::get<1>(info).range_1 + 1);
76
- if(this->hpsi == nullptr)
+ if(this->hpsi != nullptr)
77
78
delete this->hpsi;
79
}
0 commit comments