Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit cf55682

Browse files
committed
mark test_broken
1 parent 47b7868 commit cf55682

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

src/derivative_operators/BC_operators.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
abstract type AbstractBC{T} end
22

3-
# robin, general, and in general neumann BCs are all affine opeartors, meaning that they take the form Qx = Qax + Qb. neumann0 is not however; is a specialization needed?
3+
# Robin, General, and in general Neumann and Dirichlet BCs are all affine opeartors, meaning that they take the form Qx = Qax + Qb.
44
abstract type AffineBC{T,V} <: AbstractBC{T} end
55

66
struct PeriodicBC{T} <: AbstractBC{T}
@@ -83,14 +83,13 @@ struct GeneralBC{T, V<:AbstractVector{T}} <:AffineBC{T,V}
8383
end
8484
end
8585

86+
#implement Neumann and Dirichlet as special cases of RobinBC
8687
NeumannBC([l::T, r::T], [dx_l,dx_r], order) where T = RobinBC([zero(T), one(T), l], [zero(T), one(T), r], [dx_l,dx_r], order)
8788
NeumannBC([l::T, r::T], [dx_l,dx_r]) where T = RobinBC([zero(T), one(T), l], [zero(T), one(T), r], [dx_l,dx_r])
8889

8990
DirichletBC([l::T, r::T], [dx_l,dx_r], order) where T = RobinBC([one(T), zero(T), l], [one(T), zero(T), r], [dx_l,dx_r], order)
9091
DirichletBC([l::T, r::T], [dx_l,dx_r]) where T = RobinBC([one(T), zero(T), l], [one(T), zero(T), r], [dx_l,dx_r])
9192

92-
93-
9493
# other acceptable argument signatures
9594
RobinBC(al::T, bl::T, cl::T, dx_l::T, ar::T, br::T, cr::T, dx_r::T) where T = RobinBC([al,bl,cl], [ar, br, cr], [dx_l, dx_r])
9695
RobinBC(al::T, bl::T, cl::T, dx_l::T, ar::T, br::T, cr::T, dx_r::T, order::T) where T = RobinBC([al,bl,cl], [ar, br, cr], [dx_l, dx_r], order)

test/generic_operator_validation.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ for dor in 1:6, aor in 1:8
1616
D1 = DerivativeOperator{Float64}(dor,aor,dx[1],length(x))
1717
D2 = DiffEqOperators.FiniteDifference{Float64}(dor,aor,dx,length(x))
1818
D = (D1,D2)
19-
@test convert(Array, D1) convert(Array, D2)
19+
@test_broken convert(Array, D1) convert(Array, D2)
2020

2121
#take derivatives
2222
yprime1 = D1*y
2323
yprime2 = D2*y
2424

2525
#test result
26-
@test yprime1 ^dor)*y_ # test operator with known derivative of exp(kx)
27-
@test yprime2 ^dor)*y_ # test operator with known derivative of exp(kx)
26+
@test_broken yprime1 ^dor)*y_ # test operator with known derivative of exp(kx)
27+
@test_broken yprime2 ^dor)*y_ # test operator with known derivative of exp(kx)
2828

2929
#test equivalance
30-
@test yprime1 yprime2
30+
@test_broken yprime1 yprime2
3131

3232
#take derivatives
3333
y_imprime1 = D1*y_im
3434
y_imprime2 = D2*y_im
3535

3636
#test result
37-
@test y_imprime1 ((pi*im)^dor)*yim_ # test operator with known derivative of exp(jkx)
38-
@test y_imprime2 ((pi*im)^dor)*yim_ # test operator with known derivative of exp(jkx)
37+
@test_broken y_imprime1 ((pi*im)^dor)*yim_ # test operator with known derivative of exp(jkx)
38+
@test_broken y_imprime2 ((pi*im)^dor)*yim_ # test operator with known derivative of exp(jkx)
3939

4040
#test equivalance
41-
@test y_imprime1 y_imprime2
41+
@test_broken y_imprime1 y_imprime2
4242

4343
#TODO: implement specific tests for the left and right boundary regions, waiting until after update
4444
end

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Base: isapprox
66
@time @safetestset "JacVec Operators Interface" begin include("jacvec_operators.jl") end
77
@time @safetestset "Composite Operators Interface" begin include("composite_operators_interface.jl") end
88
@time @safetestset "Derivative Operators Interface" begin include("derivative_operators_interface.jl") end
9-
#@time @safetestset "Validate and Compare Generic Operators" begin include("generic_operator_validation.jl") end
9+
@time @safetestset "Validate and Compare Generic Operators" begin include("generic_operator_validation.jl") end
1010
#@time @safetestset "2nd order check" begin include("2nd_order_check.jl") end
1111
#@time @safetestset "KdV" begin include("KdV.jl") end # KdV times out and all fails
1212
#@time @safetestset "Heat Equation" begin include("heat_eqn.jl") end

0 commit comments

Comments
 (0)