Skip to content

Commit

Permalink
Merge pull request #600 from chriscoey/pointerfix
Browse files Browse the repository at this point in the history
fix access for some pointers
  • Loading branch information
lkapelevich authored Oct 9, 2020
2 parents 573c0cc + 214a008 commit f7cdf02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cones/possemideftrisparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ function setup_symbfact(cone::PosSemidefTriSparse{T, R}) where {R <: RealOrCompl
dim_R = length(cone.row_idxs)

cm = CHOLMOD.defaults(CHOLMOD.common_struct[Base.Threads.threadid()])
unsafe_store!(CHOLMOD.common_print[], 0)
unsafe_store!(CHOLMOD.common_postorder[], 1)
unsafe_store!(CHOLMOD.common_supernodal[], 2)
unsafe_store!(CHOLMOD.common_print[Base.Threads.threadid()], 0)
unsafe_store!(CHOLMOD.common_postorder[Base.Threads.threadid()], 1)
unsafe_store!(CHOLMOD.common_supernodal[Base.Threads.threadid()], 2)

fake_point = [R(l) for l in 1:dim_R]
sparse_point = cone.sparse_point = CHOLMOD.Sparse(Hermitian(sparse(cone.row_idxs, cone.col_idxs, fake_point, side, side), :L))
Expand Down

0 comments on commit f7cdf02

Please sign in to comment.