Skip to content

Commit

Permalink
part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyKholod committed Mar 31, 2024
1 parent ebb7080 commit bedd0b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/literate/src/files/first_steps/create_first_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ end

semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver;
source_terms = source_term_exp_sinpi)
#
tspan = (0.0, 1.0)
ode = semidiscretize(semi, tspan);
ode = semidiscretize(semi, tspan)

# At this point, our problem is defined. We will use the `solve` function defined in
# [OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) to get the solution.
Expand Down
3 changes: 2 additions & 1 deletion docs/literate/src/files/first_steps/getting_started.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
# ```
# is the pressure.

# The weak blast wave initial conditions are specified in
# The [`initial_condition_weak_blast_wave`](@ref) is specified in
# [`compressible_euler_2d.jl`](https://github.com/trixi-framework/Trixi.jl/blob/main/src/equations/compressible_euler_2d.jl)

# Start Julia in a terminal and execute the following code:
Expand Down Expand Up @@ -218,6 +218,7 @@ function initial_condition_density_waves(x, t, equations::CompressibleEulerEquat
return SVector(rho, rho*v1, rho*v2, rho_e)
end
initial_condition = initial_condition_density_waves
nothing; #hide #md

# - Execute the following code one more time, but instead of `path/to/file` paste the path to the
# `elixir_euler_ec.jl` file that you just edited.
Expand Down

0 comments on commit bedd0b4

Please sign in to comment.