Skip to content

Commit a38c918

Browse files
fix: promote integer valued reals to Float16
1 parent 10e6c7b commit a38c918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/systems/parameter_buffer.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
symconvert(::Type{Symbolics.Struct{T}}, x) where {T} = convert(T, x)
22
symconvert(::Type{T}, x) where {T} = convert(T, x)
3-
symconvert(::Type{Real}, x::Integer) = x
3+
symconvert(::Type{Real}, x::Integer) = convert(Float16, x)
44
symconvert(::Type{V}, x) where {V <: AbstractArray} = convert(V, symconvert.(eltype(V), x))
55

66
struct MTKParameters{T, I, D, C, N, H}

0 commit comments

Comments
 (0)