Skip to content

Commit

Permalink
bugfix on solveCliq!
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Feb 17, 2021
1 parent 3933109 commit 62af9fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SolverAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,11 @@ function solveCliq!(dfgl::AbstractDFG,

# if !isTreeSolved(treel, skipinitialized=true)
cliq = getClique(tree, cliqid)

cliqtask = if async
@async tryCliqStateMachineSolve!(dfgl, tree, cliq.id, verbose=verbose, drawtree=opt.drawtree, limititers=opt.limititers, downsolve=opt.downsolve,recordcliqs=(recordcliq ? [cliqid] : Symbol[]), incremental=opt.incremental)
@async tryCliqStateMachineSolve!(dfgl, tree, cliq.id.value, verbose=verbose, drawtree=opt.drawtree, limititers=opt.limititers, downsolve=opt.downsolve,recordcliqs=(recordcliq ? [cliqid] : Symbol[]), incremental=opt.incremental)
else
tryCliqStateMachineSolve!(dfgl, tree, cliq.id, verbose=verbose, drawtree=opt.drawtree, limititers=opt.limititers, downsolve=opt.downsolve,recordcliqs=(recordcliq ? [cliqid] : Symbol[]), incremental=opt.incremental) # N=N
tryCliqStateMachineSolve!(dfgl, tree, cliq.id.value, verbose=verbose, drawtree=opt.drawtree, limititers=opt.limititers, downsolve=opt.downsolve,recordcliqs=(recordcliq ? [cliqid] : Symbol[]), incremental=opt.incremental) # N=N
end
# end # if

Expand Down

0 comments on commit 62af9fe

Please sign in to comment.