Skip to content

Commit 5435eb9

Browse files
committed
Appease the typo-bot
1 parent 2bb044a commit 5435eb9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/independentlylinearizedutils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mutable struct CachePool{T, THREAD_SAFE}
3636
const pool::Vector{T}
3737
const alloc::Function
3838
lock::ReentrantLock
39-
num_alloced::Int
39+
num_allocated::Int
4040
num_acquired::Int
4141

4242
function CachePool(T, alloc::F; thread_safe::Bool = true) where {F}
@@ -55,7 +55,7 @@ are available.
5555
Base.@inline function acquire!(cache::CachePool{T}, _dummy = nothing) where {T}
5656
cache.num_acquired += 1
5757
if isempty(cache.pool)
58-
cache.num_alloced += 1
58+
cache.num_allocated += 1
5959
return cache.alloc()::T
6060
end
6161
return pop!(cache.pool)

src/saving.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ cache = LinearizingSavingCallbackCache(prob, solver; num_derivatives)
384384
# Store the results in this array of independently linearized solutions
385385
ilss = Vector{IndependentlyLinearizedSolution}(undef, num_trajectories)
386386
387-
# Create `prob_func` piece ot remake `prob` to have the correct callback,
387+
# Create `prob_func` piece to remake `prob` to have the correct callback,
388388
# hooking up the necessary caching pieces.
389389
function linearizer_adding_remake(prob,i,_)
390390
ilss[i] = IndependentlyLinearizedSolution(prob, num_derivatives; cache_pool=cache.ils_cache)

test/independentlylinearizedtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ using DiffEqCallbacks: CachePool, acquire!, release!, @with_cache
2525
@test u₁[1] == 1.0
2626
end
2727

28-
previously_alloced = pool.num_alloced
28+
previously_allocated = pool.num_allocated
2929
# Test that asking for a vector while we have one free does not allocate
3030
function foo(pool)
3131
return @with_cache pool u begin
3232
u[1]
3333
end
3434
end
3535
@test foo(pool) == 1.0
36-
@test pool.num_alloced == previously_alloced
36+
@test pool.num_allocated == previously_allocated
3737
end
3838
end
3939

0 commit comments

Comments
 (0)