Skip to content

Commit

Permalink
Workaround ForwardDiff issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jul 12, 2018
1 parent 501d89d commit 6c13fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/examples/bautin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ end
function f(u::SVector, p, t)
@unpack β₁, β₂, s = p
x, y = u
#=
ρ² = x^2 + y^2
ρ⁴ = ρ²^2
=#
ρ² = x * x + y * y
ρ⁴ = ρ² * ρ²
a = β₂ * ρ² + s * ρ⁴
dx = β₁ * x - y + a * x
dy = x + β₁ * y + a * y
Expand Down
4 changes: 2 additions & 2 deletions test/test_bautin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ solve!(hopf_solver)
@test minimum(β₂s) < -2

codim2_points = resolved_points(hopf_solver)
@test_broken length(codim2_points) == 1
@test_broken codim2_points[1].point_type === Codim2.PointTypes.bautin
@test length(codim2_points) == 1
@test codim2_points[1].point_type === Codim2.PointTypes.bautin

plt = plot(hopf_solver)
@test_nothrow nullshow(plt)
Expand Down

0 comments on commit 6c13fc4

Please sign in to comment.