Skip to content

Commit

Permalink
Important fix for 1d RHMC with N>4
Browse files Browse the repository at this point in the history
  • Loading branch information
daschaich committed Nov 28, 2022
1 parent 2fec7e3 commit 8a02b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 4d_Q16/libraries/rand_ahmat.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void random_anti_hermitian(anti_hermitmat *ahmat, double_prn *prn_pt) {
// Check: Previously sqrt of 1, 1/3, 1/6 for i=1, 2, 3
r15 = gaussian_rand_no(prn_pt);
tr = (Real)i * (i + 1);
r15 *= sqrt((double)(1.0 / tr));
r15 *= sqrt((double)(2.0 / tr));

// Add new r15 to i existing elements
for (j = 0; j < i; j++)
Expand Down

0 comments on commit 8a02b2f

Please sign in to comment.