Skip to content

Commit

Permalink
Colorings from base 0 to base 1
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Feb 18, 2022
1 parent cd78bd0 commit 0373061
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ColPack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function get_colors(coloring::ColPackColoring; verbose=false)
Cvoid, (Ptr{Cvoid}, Ptr{Cdouble}, Cstring, Cint),
coloring.refColPack[1], coloring.coloring, coloring.method.colpack_coloring, Cint(verbose)
)
return coloring.coloring
# Julia colorings should be base 1
return coloring.coloring .+ 1
end
end #module

0 comments on commit 0373061

Please sign in to comment.