WIP: Sc/p4est view coupled hanging nodes#2598
WIP: Sc/p4est view coupled hanging nodes#2598SimonCan wants to merge 96 commits intosc/p4est-view-coupled-enhancedfrom
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## sc/p4est-view-coupled-enhanced #2598 +/- ##
=================================================================
Coverage ? 91.87%
=================================================================
Files ? 570
Lines ? 44734
Branches ? 0
=================================================================
Hits ? 41095
Misses ? 3639
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…led-hanging-nodes
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…led-hanging-nodes
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…led-hanging-nodes
Add coupled AMR elixir to test suit.
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_p4est_2d.jl
Lines 121 to 125 in 776c7a8
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
|
||
| # Iterator for coupled mortars | ||
| @inline eachcoupledmortar(dg, cache) = Base.OneTo(ncoupledmortars(cache.coupled_mortars)) | ||
|
|
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| @trixi_testset "elixir_advection_coupled_with_amr_mortars.jl" begin | ||
| @test_trixi_include(joinpath(EXAMPLES_DIR, | ||
| "elixir_advection_coupled_with_amr_mortars.jl"), | ||
| tspan=(0.0, 1.0), | ||
| l2=[0.0007319835742861697, 0.001985235435356559], | ||
| linf=[0.008310493861112489, 0.009003928823673624]) | ||
| end |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| @trixi_testset "elixir_advection_coupled_with_amr_mortars.jl" begin | |
| @test_trixi_include(joinpath(EXAMPLES_DIR, | |
| "elixir_advection_coupled_with_amr_mortars.jl"), | |
| tspan=(0.0, 1.0), | |
| l2=[0.0007319835742861697, 0.001985235435356559], | |
| linf=[0.008310493861112489, 0.009003928823673624]) | |
| end | |
| @trixi_testset "elixir_advection_restart_amr.jl" begin | |
| @test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_restart_amr.jl"), | |
| l2=[2.869137983727866e-6], | |
| linf=[3.8353423270964804e-5]) | |
| end |
| @trixi_testset "elixir_advection_coupled_checkerboard_views.jl" begin | ||
| @test_trixi_include(joinpath(EXAMPLES_DIR, | ||
| "elixir_advection_coupled_checkerboard_views.jl"), | ||
| tspan=(0.0, 1.0), | ||
| l2=[0.0015361594792012185, 0.001455051112944291], | ||
| linf=[0.00900392882367318, 0.008196871838623832]) | ||
| end |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| @trixi_testset "elixir_advection_coupled_checkerboard_views.jl" begin | |
| @test_trixi_include(joinpath(EXAMPLES_DIR, | |
| "elixir_advection_coupled_checkerboard_views.jl"), | |
| tspan=(0.0, 1.0), | |
| l2=[0.0015361594792012185, 0.001455051112944291], | |
| linf=[0.00900392882367318, 0.008196871838623832]) | |
| end | |
| @trixi_testset "elixir_advection_coupled.jl" begin | |
| @test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_coupled.jl"), | |
| l2=[0.00013318279010712176, 0.00013318279010712014], | |
| linf=[0.000960578229013187, 0.0009605782290140752]) | |
| # Ensure that we do not have excessive memory allocations | |
| # (e.g., from type instabilities) | |
| @test_broken (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 | |
| # Test show methods for code coverage. | |
| @test_nowarn show(stdout, semi) | |
| # Load the mesh file for code coverage. | |
| loaded_mesh = Trixi.load_mesh_serial(joinpath("out", "mesh_1_000000000.h5"); | |
| n_cells_max = 0, | |
| RealT = typeof(parent_mesh).parameters[3]) | |
| end |
| u[3], 0.0, | ||
| u[4], 0.0, | ||
| 0.0, 0.0, | ||
| 0.0) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| u[3], 0.0, | |
| u[4], 0.0, | |
| 0.0, 0.0, | |
| 0.0) | |
| u[3], 0.0, | |
| u[4], 0.0, | |
| 0.0, 0.0, | |
| 0.0) |
| 0.0) | ||
| coupling_functions[2, 1] = (x, u, equations_other, equations_own) -> SVector(u[1], u[2], | ||
| u[3], u[5]) | ||
| u[3], u[5]) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| u[3], u[5]) | |
| u[3], u[5]) |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_p4est_2d.jl
Lines 151 to 160 in e85eab6
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_p4est_2d.jl
Lines 817 to 836 in e85eab6
Added capability of coupling pest mesh views with hanging/non-conforming nodes.