@@ -300,40 +300,6 @@ function Base.showerror(io::IO, e::DirectAutodiffError)
300300 println (io, TruncatedStacktraces. VERBOSE_MSG)
301301end
302302
303- const NONCONCRETE_ELTYPE_MESSAGE = """
304- Non-concrete element type inside of an `Array` detected.
305- Arrays with non-concrete element types, such as
306- `Array{Union{Float32,Float64}}`, are not supported by the
307- differential equation solvers. Anyways, this is bad for
308- performance so you don't want to be doing this!
309-
310- If this was a mistake, promote the element types to be
311- all the same. If this was intentional, for example,
312- using Unitful.jl with different unit values, then use
313- an array type which has fast broadcast support for
314- heterogeneous values such as the ArrayPartition
315- from RecursiveArrayTools.jl. For example:
316-
317- ```julia
318- using RecursiveArrayTools
319- x = ArrayPartition([1.0,2.0],[1f0,2f0])
320- y = ArrayPartition([3.0,4.0],[3f0,4f0])
321- x .+ y # fast, stable, and usable as u0 into DiffEq!
322- ```
323-
324- Element type:
325- """
326-
327- struct NonConcreteEltypeError <: Exception
328- eltype:: Any
329- end
330-
331- function Base. showerror (io:: IO , e:: NonConcreteEltypeError )
332- print (io, NONCONCRETE_ELTYPE_MESSAGE)
333- print (io, e. eltype)
334- println (io, TruncatedStacktraces. VERBOSE_MSG)
335- end
336-
337303const NONNUMBER_ELTYPE_MESSAGE = """
338304 Non-Number element type inside of an `Array` detected.
339305 Arrays with non-number element types, such as
0 commit comments