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
4c0f01ce
Commit
4c0f01ce
authored
Mar 10, 2021
by
Alvarez, Gonzalo
Browse files
CorrelationsSkeleton: braketEnviron: bug fix when bra != ket
parent
8f12b376
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Engine/CorrelationsSkeleton.h
View file @
4c0f01ce
...
...
@@ -565,14 +565,12 @@ private:
pack
.
unpack
(
r
,
eta
,
helper_
.
leftRightSuper
(
ptr
).
super
().
permutation
(
t
));
if
(
eta
>=
A
.
rows
())
throw
PsimagLite
::
RuntimeError
(
"Error
\n
"
);
for
(
int
k
=
A
.
getRowPtr
(
eta
);
k
<
A
.
getRowPtr
(
eta
+
1
);
k
++
)
{
SizeType
eta2
=
A
.
getCol
(
k
);
SizeType
t2
=
helper_
.
leftRightSuper
(
ptr
).
super
().
permutationInverse
(
r
+
eta2
*
leftSize
);
if
(
t2
<
offset
||
t2
>=
total
)
continue
;
sum
+=
A
.
getValue
(
k
)
*
PsimagLite
::
conj
(
vec1
.
slowAccess
(
t
))
*
sum
+=
A
.
getValue
(
k
)
*
PsimagLite
::
conj
(
vec1
.
fastAccess
(
sector
,
t
-
offset
))
*
vec2
.
slowAccess
(
t2
)
*
sign
;
}
}
...
...
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