Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Oct 7, 2024
1 parent ae90332 commit 9cb33a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/equations/compressible_euler_multicomponent_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ function initial_condition_weak_blast_wave(x, t,
for i in eachcomponent(equations))
elseif RealT == Float64
prim_rho = SVector{ncomponents(equations), RealT}(r > 0.5 ?
2^(i - 1) * (1.0 - 2) /
2^(i - 1) * (1 - 2) /
(1 -
2^ncomponents(equations)) :
2^(i - 1) * (1.0 - 2) /
2^(i - 1) * (1 - 2) /
(1 -
2^ncomponents(equations)) *
1.1691
Expand Down
4 changes: 2 additions & 2 deletions src/equations/compressible_euler_multicomponent_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ function initial_condition_weak_blast_wave(x, t,
for i in eachcomponent(equations))
elseif RealT == Float64
prim_rho = SVector{ncomponents(equations), RealT}(r > 0.5 ?
2^(i - 1) * (1.0 - 2) /
2^(i - 1) * (1 - 2) /
(1 -
2^ncomponents(equations)) :
2^(i - 1) * (1.0 - 2) /
2^(i - 1) * (1 - 2) /
(1 -
2^ncomponents(equations)) *
1.1691
Expand Down

0 comments on commit 9cb33a6

Please sign in to comment.