Skip to content

Commit

Permalink
Fix a bug in ci string function
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Dec 2, 2023
1 parent 2119797 commit 148a6fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyscf/lib/mcscf/fci_contract.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,8 @@ void FCIprog_b_t1(double *ci0, double *t1,
sign = EXTRACT_SIGN(tab[j]);
if (sign == 0) {
break;
} else {
t1[ia*bcount+str0] += sign * pci[str1];
}
t1[ia*bcount+str0] += sign * pci[str1];
}
tab += nlinkb;
}
Expand Down Expand Up @@ -176,9 +175,8 @@ void FCIspread_b_t1(double *ci1, double *t1,
sign = EXTRACT_SIGN(tab[j]);
if (sign == 0) {
break;
} else {
pci[str1] += sign * t1[ia*bcount+str0];
}
pci[str1] += sign * t1[ia*bcount+str0];
}
tab += nlinkb;
}
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/mcscf/fci_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ static int binomial(int n, int m)
val *= i;
val /= i - m;
}
return val;
}
}

Expand Down

0 comments on commit 148a6fc

Please sign in to comment.