Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMR for 1D Parabolic Eqs #1602

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
0bbe913
First try mortars for parabolic terms
DanielDoehring Jul 17, 2023
fb4efa9
Use correct interface values in calc_fstar!
DanielDoehring Jul 17, 2023
db048cb
Format parabolic 2d dgsem
DanielDoehring Jul 17, 2023
f8c3403
Remove unused function parameters
DanielDoehring Jul 18, 2023
e9d16c7
L2 Mortars for 3D DGSEM TreeMesh
DanielDoehring Jul 18, 2023
a9185a5
Format
DanielDoehring Jul 18, 2023
90ce643
Back to original example
DanielDoehring Jul 18, 2023
b37774e
Dispatch 2D DGSEm rhs_parabolic for p4est and classic tree
DanielDoehring Jul 18, 2023
2149cfd
Re-use standard prolong2mortars in gradient comp
DanielDoehring Jul 18, 2023
e0fda81
Merge branch 'main' into MortarsParabolic
ranocha Jul 18, 2023
06a8488
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 19, 2023
e3ad723
Back to original version
DanielDoehring Jul 19, 2023
b751d40
Merge branch 'MortarsParabolic' of github.com:DanielDoehring/Trixi.jl…
DanielDoehring Jul 19, 2023
567938c
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 19, 2023
7e732c7
Add tests for L2 mortars for hyp-para
DanielDoehring Jul 20, 2023
1deb7d7
Working branch for amr for parabolic
DanielDoehring Jul 20, 2023
1a26201
Merge branch 'MortarsParabolic' of github.com:DanielDoehring/Trixi.jl…
DanielDoehring Jul 20, 2023
f5b1e62
remove whitespaces
DanielDoehring Jul 20, 2023
2111a9c
remove whitespace
DanielDoehring Jul 20, 2023
caf9529
Remove some println()s
DanielDoehring Jul 20, 2023
eaf0838
add to project
DanielDoehring Jul 20, 2023
e6969cf
Use original analysis callback
DanielDoehring Jul 20, 2023
46ec996
Test Taylor-Green with different integrator
DanielDoehring Jul 20, 2023
051b2bf
Remove whitespace
DanielDoehring Jul 21, 2023
44918bf
remove blank line
DanielDoehring Jul 21, 2023
332fb85
Work in progress
DanielDoehring Jul 23, 2023
04199a4
check coverage status
DanielDoehring Jul 23, 2023
db785d9
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 23, 2023
290a41f
Stick to CK2N54 for 3D test
DanielDoehring Jul 24, 2023
05cd748
Merge branch 'MortarsParabolic' into AMR_Parabolic
DanielDoehring Jul 24, 2023
cea2100
Working version 1D parabolic AMR
DanielDoehring Jul 24, 2023
f35a398
revert elixirs
DanielDoehring Jul 24, 2023
c478942
revert elixirs
DanielDoehring Jul 24, 2023
6afed8f
revert euler
DanielDoehring Jul 24, 2023
95cd835
whitespace
DanielDoehring Jul 24, 2023
ac37b7e
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 24, 2023
69a0eaa
Add to authors
DanielDoehring Jul 24, 2023
d7a07b4
Parabolic AMR in 2D
DanielDoehring Jul 24, 2023
af9decc
3D parabolic AMR
DanielDoehring Jul 25, 2023
6dc252b
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 25, 2023
724fecb
try 3d amr
DanielDoehring Jul 25, 2023
491c923
Add more explicit dispatch
DanielDoehring Jul 25, 2023
5b5d433
Less invasive treatment for mortars and p4est
DanielDoehring Jul 25, 2023
bb68ee3
Revert "Add more explicit dispatch"
DanielDoehring Jul 25, 2023
073612e
Merge branch 'MortarsParabolicP4estCompat' into MortarsParabolic
DanielDoehring Jul 25, 2023
7f816e2
More explicit dispatch
DanielDoehring Jul 25, 2023
6cdca4a
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 25, 2023
e05d112
Remove additional end
DanielDoehring Jul 25, 2023
38e731d
Merge branch 'MortarsParabolic' of github.com:DanielDoehring/Trixi.jl…
DanielDoehring Jul 25, 2023
a17b1bd
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 26, 2023
5247b4e
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 26, 2023
d60c9f5
comment
DanielDoehring Jul 27, 2023
b17d964
Merge branch 'MortarsParabolic' into AMR_Parabolic
DanielDoehring Jul 27, 2023
14025d2
remove tabs
DanielDoehring Jul 27, 2023
6e9737b
undo whitespaces
DanielDoehring Jul 27, 2023
e539f41
Merge branch 'main' into MortarsParabolic
ranocha Jul 28, 2023
a414d7c
Merge branch 'main' into AMR_Parabolic
DanielDoehring Jul 28, 2023
ebdbbc6
Remove old stuff
DanielDoehring Jul 28, 2023
c1db7ac
Remove doubled implementations
DanielDoehring Jul 28, 2023
be3b067
kepp main updated with true main
DanielDoehring Jul 28, 2023
3a82e4a
Add comment
DanielDoehring Jul 29, 2023
83b54f8
Merge branch 'MortarsParabolic' of github.com:DanielDoehring/Trixi.jl…
DanielDoehring Jul 29, 2023
5650162
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 29, 2023
e66b831
comment parabolic 3d
DanielDoehring Jul 29, 2023
1c8efd5
Merge branch 'main' into MortarsParabolic
DanielDoehring Jul 30, 2023
b7bd74f
whitespace
DanielDoehring Jul 30, 2023
797d2d5
Merge branch 'MortarsParabolic' of github.com:DanielDoehring/Trixi.jl…
DanielDoehring Jul 30, 2023
06a4196
Avoid allocations in parabolic boundary fluxes
DanielDoehring Jul 31, 2023
7f9c752
Merge branch 'main' into main
DanielDoehring Jul 31, 2023
6ac6011
Merge branch 'main' into MortarsParabolic
DanielDoehring Aug 1, 2023
1d58857
Merge branch 'main' into AMR_Parabolic
DanielDoehring Aug 1, 2023
151fe52
Merge branch 'MortarsParabolic' into AMR_Parabolic
DanielDoehring Aug 1, 2023
c9bb0ee
Update src/solvers/dgsem_tree/dg_2d_parabolic.jl
DanielDoehring Aug 1, 2023
d7f2568
Update src/solvers/dgsem_tree/dg_3d_parabolic.jl
DanielDoehring Aug 1, 2023
a1f3e99
Update src/solvers/dgsem_tree/dg_3d_parabolic.jl
DanielDoehring Aug 1, 2023
207b253
Merge branch 'MortarsParabolic' of github.com:DanielDoehring/Trixi.jl…
DanielDoehring Aug 1, 2023
7162833
try to find allocations
DanielDoehring Aug 1, 2023
3c075d4
Increase type stability
DanielDoehring Aug 1, 2023
f3ebbdf
back to original time
DanielDoehring Aug 1, 2023
9dff7de
revert alloc BC (other PR)
DanielDoehring Aug 2, 2023
0936b3b
Revert alloc BC (other PR)
DanielDoehring Aug 2, 2023
67e064a
Name & News
DanielDoehring Aug 2, 2023
0b51b32
Update NEWS.md
DanielDoehring Aug 2, 2023
40b2796
Correct shear layer IC
DanielDoehring Aug 3, 2023
43c0b68
reset example
DanielDoehring Aug 4, 2023
e74ef9e
reset excample
DanielDoehring Aug 4, 2023
50867a4
resize now working in ODE diff eq
DanielDoehring Aug 4, 2023
5222448
splitform now working in ODE jl
DanielDoehring Aug 4, 2023
82539f7
Merge branch 'MortarsParabolic' into AMR_Parabolic
DanielDoehring Aug 4, 2023
8db068d
Update news
DanielDoehring Aug 4, 2023
80519b1
Whitespaces
DanielDoehring Aug 7, 2023
5638a01
Update examples/tree_2d_dgsem/elixir_navierstokes_convergence.jl
DanielDoehring Aug 8, 2023
034c53c
Update examples/tree_3d_dgsem/elixir_navierstokes_convergence.jl
DanielDoehring Aug 8, 2023
d1e4dad
Merge branch 'main' into main
DanielDoehring Aug 8, 2023
3c4574c
Merge branch 'trixi-framework:main' into main
DanielDoehring Aug 8, 2023
618fa21
Merge branch 'main' of github.com:DanielDoehring/Trixi.jl
DanielDoehring Aug 9, 2023
510e236
Fix typo
DanielDoehring Aug 9, 2023
5b299d6
Merge branch 'trixi-framework:main' into main
DanielDoehring Aug 9, 2023
6fbbf3a
Merge branch 'trixi-framework:main' into main
DanielDoehring Aug 11, 2023
e755ef5
Merge branch 'main' of github.com:DanielDoehring/Trixi.jl
DanielDoehring Aug 11, 2023
994974e
Merge branch 'main' into AMR_Parabolic
DanielDoehring Aug 11, 2023
a4931aa
comment
DanielDoehring Aug 11, 2023
7f57ab1
Restrict to 1D
DanielDoehring Aug 11, 2023
d28fb45
simplifications 1D
DanielDoehring Aug 11, 2023
18ef38d
Clean up
DanielDoehring Aug 11, 2023
ed1d89e
format
DanielDoehring Aug 11, 2023
deace03
format
DanielDoehring Aug 11, 2023
421fc95
format
DanielDoehring Aug 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
DanielDoehring committed Aug 11, 2023
commit deace038e73d620fbf58c0d18e69c4b7f602f418
41 changes: 21 additions & 20 deletions src/solvers/dgsem_tree/cache_viscous.jl
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
mutable struct CacheViscous1D{uEltype <: Real}
u_transformed::Array{uEltype, 3}
gradients::Array{uEltype, 3}
flux_viscous::Array{uEltype, 3}
u_transformed::Array{uEltype, 3}
gradients::Array{uEltype, 3}
flux_viscous::Array{uEltype, 3}

# internal `resize!`able storage
_u_transformed::Vector{uEltype}
_gradients::Vector{uEltype}
_flux_viscous::Vector{uEltype}
# internal `resize!`able storage
_u_transformed::Vector{uEltype}
_gradients::Vector{uEltype}
_flux_viscous::Vector{uEltype}

function CacheViscous1D{uEltype}(n_vars::Integer, n_nodes::Integer, n_elements::Integer) where {uEltype <: Real}
new(Array{uEltype, 3}(undef, n_vars, n_nodes, n_elements),
Array{uEltype, 3}(undef, n_vars, n_nodes, n_elements),
Array{uEltype, 3}(undef, n_vars, n_nodes, n_elements),
Vector{uEltype}(undef, n_vars * n_nodes * n_elements),
Vector{uEltype}(undef, n_vars * n_nodes * n_elements),
Vector{uEltype}(undef, n_vars * n_nodes * n_elements))
end
function CacheViscous1D{uEltype}(n_vars::Integer, n_nodes::Integer,
n_elements::Integer) where {uEltype <: Real}
new(Array{uEltype, 3}(undef, n_vars, n_nodes, n_elements),
Array{uEltype, 3}(undef, n_vars, n_nodes, n_elements),
Array{uEltype, 3}(undef, n_vars, n_nodes, n_elements),
Vector{uEltype}(undef, n_vars * n_nodes * n_elements),
Vector{uEltype}(undef, n_vars * n_nodes * n_elements),
Vector{uEltype}(undef, n_vars * n_nodes * n_elements))
end
end

# Only one-dimensional `Array`s are `resize!`able in Julia.
Expand All @@ -24,9 +25,9 @@ end
# `unsafe_wrap`ping multi-dimensional `Array`s around the
# internal storage.
function Base.resize!(cache_viscous::CacheViscous1D, capacity)
resize!(cache_viscous._u_transformed, capacity)
resize!(cache_viscous._gradients, capacity)
resize!(cache_viscous._flux_viscous, capacity)
resize!(cache_viscous._u_transformed, capacity)
resize!(cache_viscous._gradients, capacity)
resize!(cache_viscous._flux_viscous, capacity)

return nothing
end
return nothing
end
1 change: 0 additions & 1 deletion src/solvers/dgsem_tree/dg_1d_parabolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -565,5 +565,4 @@ function apply_jacobian_parabolic!(du, mesh::TreeMesh{1},

return nothing
end

end # @muladd