Commit 04d02f91 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

OperatorType fermionOrBoson: another bug fix

parent c9dd4746
......@@ -334,7 +334,7 @@ private:
const OperatorType& myOp = basis2.getOperatorByIndex(i);
bool isFermion = (myOp.fermionOrBoson ==
ProgramGlobals::FermionOrBosonEnum::FERMION);
if (savedSign != myOp.fermionOrBoson) {
if (savedSign != myOp.fermionOrBoson || fermionicSigns.size() == 0) {
utils::fillFermionicSigns(fermionicSigns,
basis2.signs(),
(isFermion) ? -1 : 1);
......@@ -360,7 +360,7 @@ private:
getOperatorByIndex(i - basis2.numberOfOperators());
bool isFermion = (myOp.fermionOrBoson ==
ProgramGlobals::FermionOrBosonEnum::FERMION);
if (savedSign != myOp.fermionOrBoson) {
if (savedSign != myOp.fermionOrBoson || fermionicSigns.size() == 0) {
utils::fillFermionicSigns(fermionicSigns,
basis2.signs(),
(isFermion) ? -1 : 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment