Skip to content

Commit 798d344

Browse files
committed
Fix algorithms interface using legacy finalize_substate signature.
1 parent b242e03 commit 798d344

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/AlgorithmsInterfaceExtensions/AlgorithmsInterfaceExtensions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ end
5858
function AI.step!(problem::AI.Problem, algorithm::NestedAlgorithm, state::AI.State)
5959
subproblem, subalgorithm, substate = initialize_subsolve(problem, algorithm, state)
6060
AI.solve!(subproblem, subalgorithm, substate)
61-
finalize_substate!(problem, algorithm, substate, state)
61+
finalize_substate!(subproblem, subalgorithm, substate, state)
6262
return state
6363
end
6464

test/test_algorithmsinterfaceextensions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ end
115115
# `finalize_substate!` copies the substate's iterate back into the
116116
# parent state.
117117
substate = AI.initialize_state(problem, algorithm; iterate = [42.0])
118-
AIE.finalize_substate!(problem, algorithm, state, substate)
118+
AIE.finalize_substate!(problem, algorithm, substate, state)
119119
@test state.iterate == [42.0]
120120
end
121121

test/test_beliefpropagation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ end
229229

230230
cache = ITensorNetworksNext.beliefpropagation(
231231
tn, messages, partitions;
232-
stopping_criterion = (; maxiter = 10, tol = 1.0e-10)
232+
stopping_criterion = (; maxiter = 30, tol = 1.0e-10)
233233
)
234234

235235
z_bp = exp(bethe_free_energy(tn, cache))

0 commit comments

Comments
 (0)