Skip to content

Commit

Permalink
broadcast some more
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jun 30, 2017
1 parent 8fdf44a commit 93bec02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrators/low_order_rk_integrators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ end
if integrator.opts.adaptive
@tight_loop_macros for (i,atol,rtol) in zip(uidx,Iterators.cycle(integrator.opts.abstol),Iterators.cycle(integrator.opts.reltol))
@inbounds utilde[i] = @muladd uprev[i] + dt*(b1*k1[i] + b2*k2[i] + b3*k3[i] + b4*k4[i] + b5*k5[i] + b6*k6[i] + b7*k7[i])
@inbounds atmp[i] = ((utilde[i]-u[i])./@muladd(atol+max(abs(uprev[i]),abs(u[i])).*rtol))
@inbounds atmp[i] = ((utilde[i].-u[i])./@muladd(atol.+max.(abs.(uprev[i]),abs.(u[i])).*rtol))
end
integrator.EEst = integrator.opts.internalnorm(atmp)
end
Expand Down

0 comments on commit 93bec02

Please sign in to comment.