Skip to content

Commit

Permalink
Fix test config file path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaFuwa committed Aug 12, 2024
1 parent c51695f commit 4ee86e1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/test_derivative.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function test_derivative(backend=CPU)
NT = 4
U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0)
random_gauges!(U)
# filename = "./test/testconf.txt"
# filename = pkgdir(MetaQCD, "test", "testconf.txt")
# load_config!(BridgeFormat(), U, filename);
if backend !== CPU
U = MetaQCD.to_backend(backend, U)
Expand Down
2 changes: 1 addition & 1 deletion test/test_fderivative.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function test_fderivative(
U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0)
random_gauges!(U)

# filename = "./test/testconf.txt"
# filename = pkgdir(MetaQCD, "test", "testconf.txt")
# load_config!(BridgeFormat(), U, filename)
if backend !== CPU
U = MetaQCD.to_backend(backend, U)
Expand Down
2 changes: 1 addition & 1 deletion test/test_fermmeas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function test_fermion_measurements(backend=CPU)
println("SU3testmeas")
NX = NY = NZ = NT = 4
U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0)
filename = "./test/testconf.txt"
filename = pkgdir(MetaQCD, "test", "testconf.txt")
# random_gauges!(U)
load_config!(BridgeFormat(), U, filename)
if backend !== CPU
Expand Down
2 changes: 1 addition & 1 deletion test/test_gflow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function test_gradflow(backend=CPU)
NZ = 4
NT = 4
U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0)
filename = "./test/testconf.txt"
filename = pkgdir(MetaQCD, "test", "testconf.txt")
load_config!(BridgeFormat(), U, filename)
if backend !== CPU
U = MetaQCD.to_backend(backend, U)
Expand Down
2 changes: 1 addition & 1 deletion test/test_meas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function test_measurements(backend=CPU)
NZ = 4
NT = 4
U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0)
filename = "./test/testconf.txt"
filename = pkgdir(MetaQCD, "test", "testconf.txt")
load_config!(BridgeFormat(), U, filename);
if backend !== CPU
U = MetaQCD.to_backend(backend, U)
Expand Down

0 comments on commit 4ee86e1

Please sign in to comment.