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

Add numerical support of other real types (compressible_euler) #1947

Merged
merged 21 commits into from
Jun 14, 2024
Merged
Changes from 4 commits
Commits
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
34 changes: 17 additions & 17 deletions test/test_type.jl
Original file line number Diff line number Diff line change
Expand Up @@ -553,18 +553,18 @@ isdir(outdir) && rm(outdir, recursive = true)
RealT
end

@test eltype(@inferred max_abs_speed_naive(u_ll, u_rr, orientation, equations)) ==
@test typeof(@inferred max_abs_speed_naive(u_ll, u_rr, orientation, equations)) ==
RealT
@test eltype(@inferred Trixi.max_abs_speeds(u, equations)) == RealT
@test eltype(@inferred cons2prim(u, equations)) == RealT
@test eltype(@inferred prim2cons(u, equations)) == RealT
@test eltype(@inferred cons2entropy(u, equations)) == RealT
@test eltype(@inferred entropy2cons(u, equations)) == RealT
@test eltype(@inferred Trixi.total_entropy(u, equations)) == RealT
@test eltype(@inferred Trixi.temperature(u, equations)) == RealT
@test eltype(@inferred Trixi.totalgamma(u, equations)) == RealT
@test eltype(@inferred density(u, equations)) == RealT
@test eltype(@inferred pressure(u, equations)) == RealT
@test typeof(@inferred Trixi.total_entropy(u, equations)) == RealT
@test typeof(@inferred Trixi.temperature(u, equations)) == RealT
@test typeof(@inferred Trixi.totalgamma(u, equations)) == RealT
@test typeof(@inferred density(u, equations)) == RealT
@test typeof(@inferred pressure(u, equations)) == RealT
end
end

Expand Down Expand Up @@ -620,7 +620,7 @@ isdir(outdir) && rm(outdir, recursive = true)
RealT
end

@test eltype(@inferred max_abs_speed_naive(u_ll, u_rr, orientation,
@test typeof(@inferred max_abs_speed_naive(u_ll, u_rr, orientation,
equations)) ==
RealT
end
Expand All @@ -630,11 +630,11 @@ isdir(outdir) && rm(outdir, recursive = true)
@test eltype(@inferred prim2cons(u, equations)) == RealT
@test eltype(@inferred cons2entropy(u, equations)) == RealT
@test eltype(@inferred entropy2cons(u, equations)) == RealT
@test eltype(@inferred Trixi.total_entropy(u, equations)) == RealT
@test eltype(@inferred Trixi.temperature(u, equations)) == RealT
@test eltype(@inferred Trixi.totalgamma(u, equations)) == RealT
@test eltype(@inferred density(u, equations)) == RealT
@test eltype(@inferred density_pressure(u, equations)) == RealT
@test typeof(@inferred Trixi.total_entropy(u, equations)) == RealT
@test typeof(@inferred Trixi.temperature(u, equations)) == RealT
@test typeof(@inferred Trixi.totalgamma(u, equations)) == RealT
@test typeof(@inferred density(u, equations)) == RealT
@test typeof(@inferred density_pressure(u, equations)) == RealT
end
end

Expand Down Expand Up @@ -673,16 +673,16 @@ isdir(outdir) && rm(outdir, recursive = true)
RealT
end

@test eltype(@inferred max_abs_speed_naive(u_ll, u_rr, orientation, equations)) ==
@test typeof(@inferred max_abs_speed_naive(u_ll, u_rr, orientation, equations)) ==
ranocha marked this conversation as resolved.
Show resolved Hide resolved
RealT
@test eltype(@inferred Trixi.max_abs_speeds(u, equations)) == RealT
@test eltype(@inferred cons2prim(u, equations)) == RealT
@test eltype(@inferred prim2cons(u, equations)) == RealT
@test eltype(@inferred entropy(u, equations)) == RealT
@test eltype(@inferred cons2entropy(u, equations)) == RealT
@test eltype(@inferred density(u, equations)) == RealT
@test eltype(@inferred pressure(u, equations)) == RealT
@test eltype(@inferred density_pressure(u, equations)) == RealT
@test typeof(@inferred entropy(u, equations)) == RealT
@test typeof(@inferred density(u, equations)) == RealT
@test typeof(@inferred pressure(u, equations)) == RealT
@test typeof(@inferred density_pressure(u, equations)) == RealT
end
end
end
Expand Down
Loading