Skip to content

Commit

Permalink
cut_xguess added to profiler_step
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Feb 4, 2025
1 parent 72739c2 commit e16fafc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/profiler_step.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ end

function compute_next_pars!(profiler::ProfilerState, s::AdaptiveStep)
#TODO: Implement adaptive step
end

##################### HELPER FUNCTIONS #####################

function cut_xguess(xguess::Number, dir::Int, bound::Number)
if dir*xguess > dir*bound
return bound
else
return xguess
end
end

0 comments on commit e16fafc

Please # to comment.