Skip to content

Commit

Permalink
Update SolverCPU.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugomez committed Mar 8, 2024
1 parent b944c11 commit 19d8b10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SolverCPU.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ function scatter!(y::AbstractVector, α::Number, fecoef::AbstractVector,
refs::AbstractVector, cache::AbstractVector, irange::AbstractRange)
# α is actually only 1 or -1 so do special path for them
if α == 1
@inbounds @simd for i in irange
@fastmath @inbounds @simd for i in irange
y[i] += fecoef[refs[i]] * cache[i]
end

Check warning on line 60 in src/SolverCPU.jl

View check run for this annotation

Codecov / codecov/patch

src/SolverCPU.jl#L60

Added line #L60 was not covered by tests
elseif α == -1
@inbounds @simd for i in irange
@fastmath @inbounds @simd for i in irange
y[i] -= fecoef[refs[i]] * cache[i]
end

Check warning on line 64 in src/SolverCPU.jl

View check run for this annotation

Codecov / codecov/patch

src/SolverCPU.jl#L64

Added line #L64 was not covered by tests
else
@inbounds @simd for i in irange
@fastmath @inbounds @simd for i in irange
y[i] += α * fecoef[refs[i]] * cache[i]
end

Check warning on line 68 in src/SolverCPU.jl

View check run for this annotation

Codecov / codecov/patch

src/SolverCPU.jl#L66-L68

Added lines #L66 - L68 were not covered by tests
end
Expand Down

0 comments on commit 19d8b10

Please sign in to comment.