Skip to content

Commit 11c2fe8

Browse files
committed
add verbose option
1 parent 85d50ca commit 11c2fe8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/DFGVariable.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,12 @@ function updateVariableSolverData!(dfg::AbstractDFG,
375375
vnd::VariableNodeData,
376376
solvekey::Symbol=:default,
377377
useCopy::Bool=true,
378-
fields::Vector{Symbol}=Symbol[] )::VariableNodeData
378+
fields::Vector{Symbol}=Symbol[],
379+
verbose::Bool=true )
379380
#
380381
#This is basically just setSolverData
381382
var = getVariable(dfg, variablekey)
382-
if !haskey(var.solverDataDict, solvekey)
383+
if verbose && !haskey(var.solverDataDict, solvekey)
383384
@warn "VariableNodeData '$(solvekey)' does not exist, adding"
384385
end
385386

0 commit comments

Comments
 (0)