Skip to content

Commit 4e3287f

Browse files
authored
Specialize NLPModels histline (#96)
* Specialize NLPModels `histline` ``` ┌ NLPModelsTest [7998695d-6960-4d3a-85c4-e1bceb8cd856] │ WARNING: Method definition histline(Any, Any, Any) in module NLPModels at /home/runner/.julia/packages/NLPModels/XBcWL/src/nlp/show.jl:29 overwritten in module NLPModelsTest at /home/runner/.julia/packages/NLPModelsTest/qCUnA/src/allocs_model.jl:324. │ ** incremental compilation may be fatally broken for this module ** └ ```
1 parent d38c663 commit 4e3287f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/allocs_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function test_allocs_nlsmodels(nlp::AbstractNLSModel; exclude = [])
321321
return nlp_allocations
322322
end
323323

324-
function NLPModels.histline(s, v, maxv)
324+
function NLPModels.histline(s::String, v::Integer, maxv::Integer)
325325
@assert 0 v maxv
326326
λ = maxv == 0 ? 0 : ceil(Int, 20 * v / maxv)
327327
return @sprintf("%31s: %s %-6s", s, ""^λ * ""^(20 - λ), v)

0 commit comments

Comments
 (0)