We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5665a6d commit 737e6deCopy full SHA for 737e6de
src/Blocks/sources.jl
@@ -773,7 +773,7 @@ function Interpolation(itp; name)
773
eqs, t, [], [interpolator]; name, systems = [input, output])
774
end
775
776
-struct CachedInterpolation{T,I,U,X,C}
+struct CachedInterpolation{T, I, U, X, C}
777
interpolation_type::I
778
prev_u::U
779
prev_x::X
@@ -795,12 +795,12 @@ struct CachedInterpolation{T,I,U,X,C}
795
X = typeof(prev_x)
796
C = typeof(cache)
797
798
- new{T,I,U,X,C}(interpolation_type, prev_u, prev_x, cache)
+ new{T, I, U, X, C}(interpolation_type, prev_u, prev_x, cache)
799
800
801
802
-function (f::CachedInterpolation{T})(u, x, args) where T
803
- (;prev_u, prev_x, cache, interpolation_type) = f
+function (f::CachedInterpolation{T})(u, x, args) where {T}
+ (; prev_u, prev_x, cache, interpolation_type) = f
804
805
interp = @inbounds if (u, x) ≠ (get_tmp(prev_u, u), get_tmp(prev_x, x))
806
get_tmp(prev_u, u) .= u
0 commit comments