Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Jun 5, 2021
1 parent ef184be commit 8b9002c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/solvers/dg_tree/containers_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ function Base.resize!(mpi_interfaces::MPIInterfaceContainer2D, capacity)
end


function MPIInterfaceContainer2D{uEltype}(capacity::Integer, n_nodes, n_variables) where {uEltype<:Real}
function MPIInterfaceContainer2D{uEltype}(capacity::Integer, n_variables, n_nodes) where {uEltype<:Real}
nan = convert(uEltype, NaN)

# Initialize fields with defaults
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/dg_tree/dg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ end

# TODO: Deprecated in v0.3 (no longer documented)
function DGSEM(basis::LobattoLegendreBasis,
surface_integral::AbstractSurfaceIntegral=SurfaceIntegralWeakForm(surface_flux),
surface_integral::AbstractSurfaceIntegral,
volume_integral=VolumeIntegralWeakForm(),
mortar=MortarL2(basis))

Expand Down
3 changes: 2 additions & 1 deletion test/test_tree_2d_fdsbp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples", "tree_2
@testset "elixir_advection_extended.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_extended.jl"),
l2 = [2.29497319e-06],
linf = [8.48027655e-06])
linf = [8.48027655e-06],
rtol = 5.0e-7) # These results change a little bit and depend on the CI system
end
end

Expand Down
4 changes: 2 additions & 2 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ Cassette.@context Ctx
end

@testset "DG L2 mortar container debug output" begin
c2d = Trixi.L2MortarContainer2D{Float64}(1)
c2d = Trixi.L2MortarContainer2D{Float64}(1, 1, 1)
@test isnothing(display(c2d))
c3d = Trixi.L2MortarContainer3D{Float64}(1)
c3d = Trixi.L2MortarContainer3D{Float64}(1, 1, 1)
@test isnothing(display(c3d))
end

Expand Down

0 comments on commit 8b9002c

Please sign in to comment.