Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,15 @@ end
###### J product ######
#######################

import Base.Threads

function add_jprod!(
model::Model,
V::AbstractMatrix,
Jv::AbstractVector,
i::MatrixIndex,
)
for j in 1:model.meta.ncon
Threads.@threads for j in 1:model.meta.ncon
Jv[j] += LinearAlgebra.dot(model.A[i.value, j], V)
end
end
Expand Down
Loading