Skip to content

Commit a1d86ce

Browse files
committed
Fixed bug in Hasenbusch
1 parent f273b25 commit a1d86ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/stagg_pv_hmc/staghmc_spv.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ proc generate_pseudoferms(s: Staggered) =
614614
var hphit = newOneOf(hphi[fld_ind])
615615
s.Ddag(phi[fld_ind], psi, hmass)
616616
s.Ddag(hphit, hpsi, masses[0])
617-
s.solve(hphi[fld_ind], hphit, -masses[1], spa[fld_ind])
617+
#s.solve(hphi[fld_ind], hphit, -masses[1], spa[fld_ind]) Jan 21, 2026 bug
618+
s.solve(hphi[fld_ind], hphit, -hmass, spa[fld_ind])
618619
of "regress": s.Ddag(phi[fld_ind], psi, masses[0])
619620
else: qexError "Invalid option for pseudofermion preconditioner"
620621
else:

src/stagg_pv_hmc/staghmc_spv_init_and_io.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import qex # Import qex
44
import gauge/gaugeUtils # For handling gauge fields
5+
import physics/[stagSolve] # CG initialization
56
import layout # For initializing lattice layout
67
import rng # For handing RNG
78
import parseopt # For parsing command line arguments
@@ -12,7 +13,6 @@ import times # Timing for generating seeds
1213
import os # For checking if files exist
1314
import staghmc_spv_rng # For certain RNG operations
1415
import options # For optional IO behavior with fields
15-
import physics/[stagSolve]
1616

1717
#[ ~~~~ Command line and XML inputs ~~~~ ]#
1818

0 commit comments

Comments
 (0)