Skip to content

Commit

Permalink
Ignore some errors in resolved_points
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jun 30, 2018
1 parent be21854 commit dfbdd5d
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/codim1/resolve_point.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@ using ..Continuations: find_zero!
using ..BifurcationsBase: AbstractSpecialPoint, special_points,
contkind, FixedPointCont, ContinuationKind

resolved_points(solver::BifurcationSolver, args...) =
[resolve_point(point, solver) for point in special_points(solver, args...)]
function resolved_points(solver::BifurcationSolver, args...)
points = []
for interval in special_points(solver, args...)
try
push!(points, resolve_point(interval, solver))
catch err
# [[../continuations/branching.jl::SingularException]]
if err isa LinAlg.SingularException
warn(err)
warn("""
Failed to find bifurcation point within:
$(interval)
""")
continue
end
rethrow()
end
end
return points
end

function resolve_point(point::AbstractSpecialPoint, solver::BifurcationSolver)
super = as(solver, ContinuationSolver)
Expand Down

0 comments on commit dfbdd5d

Please sign in to comment.