From 40ee79521b3633a8d3b0c640e22bf008576358f9 Mon Sep 17 00:00:00 2001 From: Albert de Montserrat Date: Thu, 28 Mar 2024 19:46:23 +0100 Subject: [PATCH] remove periodic BCs tests --- test/test_boundary_conditions2D.jl | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/test/test_boundary_conditions2D.jl b/test/test_boundary_conditions2D.jl index 87896a75..560746f8 100644 --- a/test/test_boundary_conditions2D.jl +++ b/test/test_boundary_conditions2D.jl @@ -9,18 +9,6 @@ environment!(model) # periodicity n = 5 # number of elements Vx, Vy = PTArray(rand(n + 1, n + 2)), PTArray(rand(n + 2, n + 1)) - bcs = FlowBoundaryConditions(; - no_slip=(left=false, right=false, top=false, bot=false), - free_slip=(left=false, right=false, top=false, bot=false), - periodicity=(left=true, right=true, top=true, bot=true), - ) - flow_bcs!(bcs, Vx, Vy) - - @test @views Vx[: , 1] == Vx[: , end - 1] - @test @views Vx[: , end] == Vx[: , 2] - @test @views Vy[1 , :] == Vy[end - 1, :] - @test @views Vy[end, :] == Vy[2 , :] - # free-slip bcs = FlowBoundaryConditions(; no_slip=(left=false, right=false, top=false, bot=false), @@ -39,7 +27,6 @@ environment!(model) bcs = FlowBoundaryConditions(; no_slip=(left=true, right=true, top=true, bot=true), free_slip=(left=false, right=false, top=false, bot=false), - periodicity=(left=false, right=false, top=false, bot=false), ) flow_bcs!(bcs, Vx, Vy) @test sum(!iszero(Vx[1 , i]) for i in axes(Vx,2)) == 0 @@ -57,23 +44,10 @@ environment!(model) stokes = StokesArrays(ni, ViscoElastic) stokes.V.Vx .= PTArray(rand(n + 1, n + 2)) stokes.V.Vy .= PTArray(rand(n + 2, n + 1)) - flow_bcs = FlowBoundaryConditions(; - no_slip=(left=false, right=false, top=false, bot=false), - free_slip=(left=false, right=false, top=false, bot=false), - periodicity=(left=true, right=true, top=true, bot=true), - ) - flow_bcs!(stokes, flow_bcs) - - @test @views stokes.V.Vx[:, 1] == stokes.V.Vx[:, end - 1] - @test @views stokes.V.Vx[:, end] == stokes.V.Vx[:, 2] - @test @views stokes.V.Vy[1, :] == stokes.V.Vy[end - 1, :] - @test @views stokes.V.Vy[end, :] == stokes.V.Vy[2, :] - # free-slip flow_bcs = FlowBoundaryConditions(; no_slip=(left=false, right=false, top=false, bot=false), free_slip=(left=true, right=true, top=true, bot=true), - periodicity=(left=false, right=false, top=false, bot=false), ) flow_bcs!(stokes, flow_bcs) @@ -86,7 +60,6 @@ environment!(model) flow_bcs = FlowBoundaryConditions(; no_slip=(left=true, right=true, top=true, bot=true), free_slip=(left=false, right=false, top=false, bot=false), - periodicity=(left=false, right=false, top=false, bot=false), ) flow_bcs!(stokes, flow_bcs)