-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add system tests (smoke tests for now) (#47)
* Fix out-of-bounds error when the velocity of a fixed solid particle was accessed * Add system tests Co-authored-by: LasNikas <[email protected]>
- Loading branch information
1 parent
841b27f
commit a1fcef1
Showing
7 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[deps] | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Smoke tests, i.e., tests to verify that examples are running without crashing, | ||
# but without checking the correctness of the solution. | ||
@testset "System Tests" begin | ||
@testset "Fluid" begin | ||
@test_nowarn pixie_include(joinpath(examples_dir(), "fluid", "rectangular_tank_2d.jl"), tspan=(0.0, 0.1)) | ||
@test sol.retcode == ReturnCode.Success | ||
|
||
@test_nowarn pixie_include(joinpath(examples_dir(), "fluid", "dam_break_2d.jl"), tspan=(0.0, 0.1)) | ||
@test sol.retcode == ReturnCode.Success | ||
|
||
@test_nowarn pixie_include(joinpath(examples_dir(), "fluid", "dam_break_3d.jl"), tspan=(0.0, 0.1)) | ||
@test sol.retcode == ReturnCode.Success | ||
|
||
@test_nowarn pixie_include(joinpath(examples_dir(), "fluid", "falling_water_column_2d.jl"), tspan=(0.0, 0.4)) | ||
@test sol.retcode == ReturnCode.Success | ||
end | ||
|
||
@testset "Solid" begin | ||
@test_nowarn pixie_include(joinpath(examples_dir(), "solid", "oscillating_beam_2d.jl"), tspan=(0.0, 0.1)) | ||
@test sol.retcode == ReturnCode.Success | ||
end | ||
|
||
@testset "FSI" begin | ||
@test_nowarn pixie_include(joinpath(examples_dir(), "fsi", "falling_water_column_2d.jl"), tspan=(0.0, 0.4)) | ||
@test sol.retcode == ReturnCode.Success | ||
|
||
# Use rounded dimensions to avoid warnings | ||
@test_nowarn pixie_include(joinpath(examples_dir(), "fsi", "dam_break_2d.jl"), | ||
water_width=0.15, | ||
water_height=0.29, | ||
container_width=0.58, | ||
tspan_relaxing=(0.0, 2.0), | ||
tspan=(0.0, 0.4), | ||
dtmax=1e-3) | ||
@test sol.retcode == ReturnCode.Success | ||
|
||
@test_nowarn pixie_include(joinpath(examples_dir(), "fsi", "dam_break_gate_2d.jl"), | ||
tspan_relaxing=(0.0, 2.0), | ||
tspan=(0.0, 0.4), | ||
dtmax=1e-3) | ||
@test sol.retcode == ReturnCode.Success | ||
end | ||
end |