Skip to content

Commit 232b3b5

Browse files
committed
address feedback from in-person conversation
1 parent fd47ebe commit 232b3b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/src/styleguide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ conventions, we apply and enforce automated source code formatting
2020
* The main modified argument comes first. For example, if the right-hand side `du` is modified,
2121
it should come first. If only the `cache` is modified, e.g., in `prolong2interfaces!`
2222
and its siblings, put the `cache` first.
23+
* Some internal functions take a "computational backend" argument, this should always be passed as the first argument.
2324
* Otherwise, use the order `mesh, equations, solver, cache`.
2425
* If something needs to be specified in more detail for dispatch, put the additional argument before the general one
2526
that is specified in more detail. For example, we use `have_nonconservative_terms(equations), equations`

src/semidiscretization/semidiscretization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function semidiscretize(semi::AbstractSemidiscretization, tspan;
103103
storage_type = Array
104104
end
105105
if real_type === nothing
106-
real_type = Float64
106+
real_type = real(semi)
107107
end
108108
semi = trixi_adapt(storage_type, real_type, semi)
109109
if eltype(tspan) !== real_type

0 commit comments

Comments
 (0)