Skip to content

Commit

Permalink
add test for no vortex fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
AshtonSBradley committed Dec 30, 2023
1 parent 2c56028 commit 06c0282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/no_vortex_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ x = LinRange(-Lx/2,Lx/2, Nx+1)[1:end-1]; y = LinRange(-Ly/2,Ly/2, Ny+1)[1:end-1]
psi = one.(x*y') |> complex

vfound = findvortices(Torus(psi,x,y), periodic=true)

@test vfound == PointVortex[]
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using VortexDistributions, Test, SafeTestsets

@safetestset "No Vortex Fallback" begin include("no_vortex_test.jl") end

@safetestset "Point Vortex" begin include("point_vortex_test.jl") end

@safetestset "Single Vortex Accuracy" begin include("single_vort_acc_test.jl") end
Expand Down

0 comments on commit 06c0282

Please sign in to comment.