Skip to content

Commit

Permalink
update matrix syntax for Julia-1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rymanderson committed Oct 11, 2024
1 parent 103a53c commit cc21258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/rotate_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Hs_π2 = [1.0]
FastMultipole.update_Hs_π2!(Hs_π2, Val(expansion_order))
FastMultipole.update_Ts!(Ts, Hs_π2, β, Val(expansion_order))

T0 = [1.0;;]
T0 = ones(1,1)
T1 = [ -0.61126 0.689378 0.38874;
0.689378 0.222521 0.689378;
0.38874 0.689378 -0.61126;]
Expand Down
3 changes: 2 additions & 1 deletion test/translate_multipole_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ end

x = SVector{3}(0.1,0.2,-0.3)
xs = x + SVector{3}(-0.2,0.07,-0.1)
bodies = [xs[1]; xs[2]; xs[3]; 0.0; 0.7;;]
bodies = zeros(5,1)
bodies[:,1] .= [xs[1], xs[2], xs[3], 0.0, 0.7]
masses = Gravitational(bodies)
expansion_order = 7
branch = Branch(1:1, 0, 1:0, 0, 1, x, 0.0, expansion_order)
Expand Down

0 comments on commit cc21258

Please sign in to comment.