Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Mar 16, 2018
1 parent 2132199 commit 6399ba8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/derivatives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ dpow2 = Derivative(^,[x, y],Val{2})
@test dpow2 == x^y*log(x)


eqs = [D*x ~ σ*(y-x),
D*y ~ x*-z)-y,
D*z ~ x*y - β*z]
de = NonlinearSystem(eqs,[x,y,z],[σ,ρ,β])
jac = SciCompDSL.generate_nlsys_jacobian(de)
eqs = [0 ~ σ*(y-x),
0 ~ x*-z)-y,
0 ~ x*y - β*z]
sys = NonlinearSystem(eqs,[x,y,z],[σ,ρ,β])
jac = SciCompDSL.generate_nlsys_jacobian(sys)
@test_broken jac[1,1] == -σ
@test_broken jac[1,2] == σ
@test_broken jac[1,3] == 0
Expand Down

0 comments on commit 6399ba8

Please sign in to comment.