Skip to content

Commit

Permalink
Merge pull request #109 from sathvikbhagavan/patch-1
Browse files Browse the repository at this point in the history
refactor: trigger resize warning with `maxlog = 1`
  • Loading branch information
ChrisRackauckas authored Jun 3, 2024
2 parents bb33860 + 3b76ae0 commit 038e420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PreallocationTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function enlargediffcache!(dc, nelem) #warning comes only once per DiffCache.
chunksize = div(nelem, length(dc.du)) - 1
@warn "The supplied DiffCache was too small and was enlarged. This incurs allocations
on the first call to `get_tmp`. If few calls to `get_tmp` occur and optimal performance is essential,
consider changing 'N'/chunk size of this DiffCache to $chunksize."
consider changing 'N'/chunk size of this DiffCache to $chunksize." maxlog=1
resize!(dc.dual_du, nelem)
end

Expand Down

0 comments on commit 038e420

Please sign in to comment.