Skip to content

Commit

Permalink
Use for custom integrators only OrdinaryDiffEq:CallbackSet, make fi…
Browse files Browse the repository at this point in the history
…rst line blank for elixirs
  • Loading branch information
DanielDoehring committed Jan 10, 2025
1 parent 62e3584 commit c8d0a91
Show file tree
Hide file tree
Showing 155 changed files with 182 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi
using OrdinaryDiffEq

Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_1d/elixir_euler_flux_diff.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi, OrdinaryDiffEq

surface_flux = FluxLaxFriedrichs()
Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_1d/elixir_euler_quasi_1d.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi
using OrdinaryDiffEq

Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_1d/elixir_shallow_water_quasi_1d.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_2d/elixir_advection_diffusion.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Tri(), approximation_type = Polynomial(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = Polynomial(),
Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_2d/elixir_advection_diffusion_periodic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 1, element_type = Tri(), approximation_type = Polynomial(),
Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_2d/elixir_euler_brown_minion_vortex.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 4, element_type = Quad(), approximation_type = Polynomial(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = SBP(),
Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Tri(),
Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_2d/elixir_navierstokes_convergence.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_2d/elixir_shallowwater_source_terms.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_3d/elixir_advection_tensor_wedge.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi
using LinearAlgebra
Expand Down
1 change: 1 addition & 0 deletions examples/dgmulti_3d/elixir_navierstokes_convergence.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/p4est_2d_dgsem/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_2d_dgsem/elixir_advection_basic.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using OrdinaryDiffEq

# We use time integration methods implemented in Trixi.jl, but we need the `CallbackSet`
using OrdinaryDiffEq: CallbackSet
using Trixi

###############################################################################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Channel flow around a cylinder at Mach 3
#
# Boundary conditions are supersonic Mach 3 inflow at the left portion of the domain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Channel flow around a cylinder at Mach 3
#
# Boundary conditions are supersonic Mach 3 inflow at the left portion of the domain
Expand All @@ -13,7 +14,8 @@
#
# Keywords: supersonic flow, shock capturing, AMR, unstructured curved mesh, positivity preservation, compressible Euler, 2D

using OrdinaryDiffEq
# We use time integration methods implemented in Trixi.jl, but we need the `CallbackSet`
using OrdinaryDiffEq: CallbackSet
using Trixi

###############################################################################
Expand Down
1 change: 1 addition & 0 deletions examples/p4est_2d_dgsem/elixir_navierstokes_convergence.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/p4est_3d_dgsem/elixir_advection_amr.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_3d_dgsem/elixir_advection_amr.jl
# to verify the P4estMesh implementation against TreeMesh

Expand Down
1 change: 1 addition & 0 deletions examples/p4est_3d_dgsem/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_3d_dgsem/elixir_advection_basic.jl
# to verify the P4estMesh implementation against TreeMesh

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# An idealized baroclinic instability test case
# For optimal results consider increasing the resolution to 16x16x8 trees per cube face.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# A manufactured solution of a circular wind with constant angular velocity
# on a planetary-sized non-conforming mesh
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Similar to p4est_3d_dgsem/elixir_euler_free_stream_boundaries.jl
# but using Float32 instead of the default Float64

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Analogous to elixir_euler_source_terms.jl, but uses a locally refined cubed sphere mesh
# of the size of the Earth's atmosphere (using an atmospheric height of 30km).
# The initial condition and source terms have also been rescaled to planetary size.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/p4est_3d_dgsem/elixir_navierstokes_convergence.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/structured_1d_dgsem/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_1d_dgsem/elixir_advection_basic.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
4 changes: 3 additions & 1 deletion examples/structured_1d_dgsem/elixir_burgers_perk3.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Convex and ECOS are imported because they are used for finding the optimal time step and optimal
# monomial coefficients in the stability polynomial of PERK time integrators.
using Convex, ECOS
Expand All @@ -6,7 +7,8 @@ using Convex, ECOS
# in the Butcher tableau in the third order PERK time integrator.
using NLsolve

using OrdinaryDiffEq
# We use time integration methods implemented in Trixi.jl, but we need the `CallbackSet`
using OrdinaryDiffEq: CallbackSet
using Trixi

###############################################################################
Expand Down
1 change: 1 addition & 0 deletions examples/structured_1d_dgsem/elixir_euler_source_terms.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_1d_dgsem/elixir_euler_source_terms.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_2d_dgsem/elixir_advection_basic.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_advection_coupled.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_advection_float32.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Similar to structured_2d_dgsem/elixir_advection_basic.jl
# but using Float32 instead of the default Float64

Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_advection_meshview.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# This elixir transforms the setup of elixir_advection_basic to a parallelogram.
# The nodal values of the initial condition and the exact solution are the same as
# in elixir_advection_basic.
Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_advection_rotated.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# This elixir transforms the setup of elixir_advection_basic to a rotated square.
# The nodal values of the initial condition and the exact solution are the same as
# in elixir_advection_basic.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using OrdinaryDiffEq

# We use time integration methods implemented in Trixi.jl, but we need the `CallbackSet`
using OrdinaryDiffEq: CallbackSet
using Trixi

###############################################################################
Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_euler_source_terms.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_2d_dgsem/elixir_euler_source_terms.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_euler_warm_bubble.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
3 changes: 2 additions & 1 deletion examples/structured_2d_dgsem/elixir_hypdiff_nonperiodic.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

using OrdinaryDiffEq
# We use time integration methods implemented in Trixi.jl, but we need the `CallbackSet`
using OrdinaryDiffEq: CallbackSet
using Trixi

###############################################################################
Expand Down
1 change: 1 addition & 0 deletions examples/structured_2d_dgsem/elixir_mhd_coupled.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/structured_3d_dgsem/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_3d_dgsem/elixir_advection_basic.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
1 change: 1 addition & 0 deletions examples/structured_3d_dgsem/elixir_euler_source_terms.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_3d_dgsem/elixir_euler_source_terms.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# The same setup as tree_2d_dgsem/elixir_advection_basic.jl
# to verify the StructuredMesh implementation against TreeMesh

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_advection_extended.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_advection_restart.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_advection_restart_amr.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_euler_free_stream.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_euler_sedov.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_euler_shockcapturing_ec.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_mhd_alfven_wave.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
1 change: 1 addition & 0 deletions examples/t8code_2d_dgsem/elixir_mhd_rotor.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using OrdinaryDiffEq
using Trixi

Expand Down
Loading

0 comments on commit c8d0a91

Please sign in to comment.