Skip to content

Commit

Permalink
For computing exited state, Hermite countor part causes out-of-memory
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuaki1987 committed Nov 28, 2024
1 parent aec6c3a commit 522fa44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/mltplyMPIHubbardCore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,7 @@ double complex child_Cis_MPI(

if (state2 == mask2) {
trans = 0;
return 0;
}
else if (state2 == 0) {
trans = (double)Fsgn * tmp_trans;
Expand Down Expand Up @@ -1680,6 +1681,7 @@ double complex child_Ajt_MPI(

if (state2 == 0) {
trans = 0;
return 0;
}
else if (state2 == mask2) {
trans = (double)Fsgn * tmp_trans;
Expand Down
4 changes: 2 additions & 2 deletions test/lanczos_spin_kagome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ cat > reference.dat <<EOF
EOF
paste output/zvo_cisajscktalt.dat reference.dat > paste3.dat
diff=`awk 'BEGIN{diff='${diff}'} {diff+=sqrt(($9-$19)*($9-$19)+($10-$20)*($10-$20))}
END{printf "%8.6f", diff}' paste3.dat`
END{printf "%7.5f", diff}' paste3.dat`

test "${diff}" = "0.000000"
test "${diff}" = "0.00000"
exit $?

0 comments on commit 522fa44

Please sign in to comment.