Skip to content

Commit

Permalink
Update test_NgIteration_HS.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
IlianPihlajamaa authored Oct 3, 2024
1 parent d964e95 commit b8744da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_NgIteration_HS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ kBT = 1.0
pot = HardSpheres(1.0)
system = SimpleLiquid(dims, ρ, kBT, pot)
closure = PercusYevick()
method = NgIteration(tolerance=10^-10, N_stages=5, M=M, verbose=false, max_iterations=10^3)
method = NgIteration(tolerance=10^-10, N_stages=5, M=M, verbose=false, max_iterations=10^3, dr=sqrt/(M+1))/(2π))
sol = solve(system, closure, method)
sol2 = solve(system, closure, Exact(M=M))

Expand All @@ -78,7 +78,7 @@ kBT = 1.0
pot = HardSpheres(1.0)
system = SimpleLiquid(dims, ρ, kBT, pot)
closure = PercusYevick()
method = NgIteration(tolerance=10^-10, N_stages=5, M=M, verbose=false, max_iterations=10^3)
method = NgIteration(tolerance=10^-10, N_stages=5, M=M, verbose=false, max_iterations=10^3, dr=sqrt/(M+1))/(2π))
sol = solve(system, closure, method)
sol2 = solve(system, closure, Exact(M=M))

Expand All @@ -92,4 +92,4 @@ atol = 0.1

end

test2()
test2()

0 comments on commit b8744da

Please sign in to comment.