Skip to content

Commit

Permalink
make keyword arguments non specific
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanxshi committed Mar 14, 2024
1 parent c3913f8 commit b75792b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/single/branching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ function branch((sub, sup, aux))
return (sub_in, sup, aux_in), (sub, sup_out, aux)
end

function converge_branches!((working, converged); cdcp...)
function converge_branches!((working, converged); converge!_kw...)
while !isempty(working)
(sub, sup, aux) = pop!(working)
if isequal(sub, sup)
push!(converged, (sub, sup, aux))
continue
end
(sub, sup, aux) = converge!((sub, sup, aux); cdcp...)
(sub, sup, aux) = converge!((sub, sup, aux); converge!_kw...)
isequal(sub, sup) ? push!(converged, (sub, sup, aux)) : append!(working, collect(branch((sub, sup, aux))))
end
return converged
Expand Down
4 changes: 2 additions & 2 deletions src/single/squeezing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ function update!((sub, sup, aux), j::Integer; D_j_obj, scdca::Bool)
return (sub, sup, aux)
end

function converge!(Vs; D_j_obj, scdca::Bool)
function converge!(Vs; kw...)
@inbounds while true
j = next_undetermined(Vs)
iszero(j) && break
Vs = update!(Vs, j; D_j_obj, scdca)
Vs = update!(Vs, j; kw...)
end

Vs
Expand Down

0 comments on commit b75792b

Please sign in to comment.