Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurell, Pontus Bengt Johan
dmrgpp
Commits
04d02f91
Commit
04d02f91
authored
Jan 02, 2019
by
Alvarez, Gonzalo
Browse files
OperatorType fermionOrBoson: another bug fix
parent
c9dd4746
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Engine/BasisWithOperators.h
View file @
04d02f91
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment