Skip to content

Commit 5818f52

Browse files
committed
add docstring
1 parent 762eb74 commit 5818f52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Blocks/sources.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,11 @@ function Interpolation(itp; name)
773773
eqs, t, [], [interpolator]; name, systems = [input, output])
774774
end
775775

776+
"""
777+
CachedInterpolation
778+
779+
This callable struct caches the calls to an interpolation object via PreallocationTools.
780+
"""
776781
struct CachedInterpolation{T, I, U, X, C}
777782
interpolation_type::I
778783
prev_u::U
@@ -814,7 +819,6 @@ function (f::CachedInterpolation{T})(u, x, args) where {T}
814819
return interp
815820
end
816821

817-
818822
Base.nameof(::CachedInterpolation) = :CachedInterpolation
819823

820824
@register_symbolic (f::CachedInterpolation)(u::AbstractArray, x::AbstractArray, args::Tuple)

0 commit comments

Comments
 (0)