Skip to content

Commit

Permalink
Update jetcoeffs.jl (#197)
Browse files Browse the repository at this point in the history
Pasan tests!
  • Loading branch information
miguelraz authored Aug 6, 2024
1 parent 55f2101 commit c697308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integrator/jetcoeffs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function jetcoeffs!(eqsdiff::Function, t::Taylor1{T}, x::Taylor1{U}, params) whe
ordnext = ord+1

# Set `xaux` auxiliary Taylor1 variables to order `ord`
@inbounds xaux = Taylor1( x.coeffs[1:ordnext] )
@inbounds xaux = Taylor1(@views x.coeffs[begin:ordnext] )

# Equations of motion
dx = eqsdiff(xaux, params, t)
Expand Down Expand Up @@ -68,7 +68,7 @@ function jetcoeffs!(eqsdiff!::Function, t::Taylor1{T},

# Set `xaux`, auxiliary vector of Taylor1 to order `ord`
for j in eachindex(x)
@inbounds xaux[j] = Taylor1( x[j].coeffs[1:ordnext] )
@inbounds xaux[j] = Taylor1(@views x[j].coeffs[begin:ordnext] )
end

# Equations of motion
Expand Down

0 comments on commit c697308

Please sign in to comment.