Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions src/PALC/correction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,18 @@ function palc_correction!(
# Print trace if desired
print_correction_trace(cache, trace, 3)
else
# Update cache without pushing solution to curve
set_successful_iterate!(cache, uλ, false)

# Print trace if desired
print_correction_trace(cache, trace, 3)

# Target solution on boundary
flag = palc_target_solution_on_boundary!(cache, hit_bnd, solvers, trace)

# If targeting solution on boundary was successful, we're done. Otherwise, reduce ds
if flag
# Only set successful if targeting worked
# Update cache without pushing solution to curve
set_successful_iterate!(cache, uλ, false)

# Print trace if desired
print_correction_trace(cache, trace, 3)
done = true
else
hit_bnd = NaN
Expand Down Expand Up @@ -256,17 +257,17 @@ function palc_correction!(
# Print trace if desired
print_correction_trace(cache, trace, 3)
else
# Update cache without pushing solution to curve
set_successful_iterate!(cache, uλ, false)

# Print trace if desired
print_correction_trace(cache, trace, 3)

# Target solution on boundary
flag = palc_target_solution_on_boundary!(cache, hit_bnd, solvers, trace)

# If targeting solution on boundary was successful, we're done. Otherwise, reduce ds
if flag
# Update cache without pushing solution to curve
set_successful_iterate!(cache, uλ, false)

# Print trace if desired
print_correction_trace(cache, trace, 3)
done = true
else
hit_bnd = NaN
Expand Down
Loading