Skip to content

Commit

Permalink
Update src/Blocks/sources.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Aayush Sabharwal <[email protected]>
  • Loading branch information
ChrisRackauckas and AayushSabharwal authored Oct 16, 2024
1 parent 1bb50dd commit 46fdf82
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Blocks/sources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,9 @@ function (f::CachedInterpolation{T})(u, x, args) where {T}
interp = @inbounds if (u, x) (get_tmp(prev_u, u), get_tmp(prev_x, x))
get_tmp(prev_u, u) .= u
get_tmp(prev_x, x) .= x
# @info "cache miss"
cache.bufs[(u, x)] = interpolation_type(
get_tmp(prev_u, u), get_tmp(prev_x, x), args...)
else
# @info "cache hit"
cache[(u, x)]
end

Expand Down

0 comments on commit 46fdf82

Please sign in to comment.