Skip to content

Commit

Permalink
Merge pull request #39 from aoymt/fix_uhf
Browse files Browse the repository at this point in the history
Fix array index in ComplexUHF.
  • Loading branch information
tmisawa authored Nov 21, 2022
2 parents fcdfb62 + a9cf604 commit 78d7760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComplexUHF/cal_energy.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void cal_energy(struct BindStruct *X) {
E_PairHopping = 0.0;
for (int_i = 0; int_i < X->Def.NPairHopping; int_i++) {
site_1 = X->Def.PairHopping[int_i][0];
site_2 = X->Def.PairHopping[int_i][2];
site_2 = X->Def.PairHopping[int_i][1];

tmp = X->Def.ParaPairHopping[int_i];

Expand Down

0 comments on commit 78d7760

Please sign in to comment.