Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jul 23, 2024
1 parent f466f91 commit 7fe9c72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ function iteration(model::PolicyGraph{T}, options::Options) where {T}
bound,
forward_trajectory.cumulative_value,
time() - options.start_time,
Distributed.myid(),
max(Threads.threadid(), Distributed.myid()),
model.ext[:total_solves],
duality_log_key(options.duality_handler),
model.ext[:numerical_issue],
Expand All @@ -863,7 +863,7 @@ function iteration(model::PolicyGraph{T}, options::Options) where {T}
has_converged, status =
convergence_test(model, options.log, options.stopping_rules)
return IterationResult(
Distributed.myid(),
max(Threads.threadid(), Distributed.myid()),
bound,
forward_trajectory.cumulative_value,
has_converged,
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/parallel_schemes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ function master_loop(
lock(options.lock) do
options.post_iteration_callback(result)
log_iteration(options)
return

Check warning on line 353 in src/plugins/parallel_schemes.jl

View check run for this annotation

Codecov / codecov/patch

src/plugins/parallel_schemes.jl#L347-L353

Added lines #L347 - L353 were not covered by tests
end
if result.has_converged
return result.status

Check warning on line 356 in src/plugins/parallel_schemes.jl

View check run for this annotation

Codecov / codecov/patch

src/plugins/parallel_schemes.jl#L355-L356

Added lines #L355 - L356 were not covered by tests
Expand All @@ -372,6 +373,7 @@ function _simulate(
simulation = _simulate(model, variables; kwargs...)
lock(ret_lock) do
push!(ret, simulation)
return

Check warning on line 376 in src/plugins/parallel_schemes.jl

View check run for this annotation

Codecov / codecov/patch

src/plugins/parallel_schemes.jl#L369-L376

Added lines #L369 - L376 were not covered by tests
end
end
return ret

Check warning on line 379 in src/plugins/parallel_schemes.jl

View check run for this annotation

Codecov / codecov/patch

src/plugins/parallel_schemes.jl#L378-L379

Added lines #L378 - L379 were not covered by tests
Expand Down

0 comments on commit 7fe9c72

Please sign in to comment.