Skip to content

Commit 038e420

Browse files
Merge pull request #109 from sathvikbhagavan/patch-1
refactor: trigger resize warning with `maxlog = 1`
2 parents bb33860 + 3b76ae0 commit 038e420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PreallocationTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function enlargediffcache!(dc, nelem) #warning comes only once per DiffCache.
190190
chunksize = div(nelem, length(dc.du)) - 1
191191
@warn "The supplied DiffCache was too small and was enlarged. This incurs allocations
192192
on the first call to `get_tmp`. If few calls to `get_tmp` occur and optimal performance is essential,
193-
consider changing 'N'/chunk size of this DiffCache to $chunksize."
193+
consider changing 'N'/chunk size of this DiffCache to $chunksize." maxlog=1
194194
resize!(dc.dual_du, nelem)
195195
end
196196

0 commit comments

Comments
 (0)