Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye committed Jan 6, 2025
1 parent 0a50fad commit 6aba8d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/tpt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ Bmesh = distmesh2D(dfuncB, huniform, density, bboxB, ptsB)

Z = invariant_pdf(sys, mesh, Amesh, Bmesh)

@test Z 69.3829 atol=1e-1
@test Z 69.3829 atol = 1e-1

function divfree1(x,y)
f1,f2 = divfree(x,y)
return -f1,-f2
function divfree1(x, y)
f1, f2 = divfree(x, y)
return -f1, -f2
end

langevin_sys_reverse = CriticalTransitions.Langevin(Hamiltonian, divfree1, KE, gamma, beta)
Expand All @@ -114,6 +114,6 @@ qminus = committor(langevin_sys_reverse, mesh, Bind, Aind)
for committor in [q, qminus]
prob_lastA = probability_last_A(sys, mesh, Amesh, committor, Z)
prob_lastB = probability_last_A(sys, mesh, Bmesh, committor, Z)
@test prob_lastA 0.5 atol=1e-3
@test prob_lastB 0.5 atol=1e-3
@test prob_lastA 0.5 atol = 1e-3
@test prob_lastB 0.5 atol = 1e-3
end

0 comments on commit 6aba8d0

Please sign in to comment.