Skip to content

Commit af6e166

Browse files
committed
Fix svector bug in parametric test
1 parent 8c9b8e5 commit af6e166

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testBasicParametric.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ end
124124

125125
##
126126

127-
foreach(x->getSolverData(getVariable(fg,x.first),:parametric).val[1] .= x.second.val, pairs(d))
127+
foreach(x->getSolverData(getVariable(fg,x.first),:parametric).val[1] = x.second.val, pairs(d))
128128

129129

130130
# getSolverParams(fg).dbg=true
@@ -186,7 +186,7 @@ foreach(println, d)
186186

187187
##
188188

189-
foreach(x->getSolverData(getVariable(fg,x.first),:parametric).val[1] .= x.second.val, pairs(d))
189+
foreach(x->getSolverData(getVariable(fg,x.first),:parametric).val[1] = x.second.val, pairs(d))
190190

191191
# fg.solverParams.showtree = true
192192
# fg.solverParams.drawtree = true
@@ -228,7 +228,7 @@ for i in 0:10
228228
@test isapprox(d[sym].val[1], i, atol=1e-6)
229229
end
230230

231-
foreach(x->getSolverData(getVariable(fg,x.first),:parametric).val[1] .= x.second.val, pairs(d))
231+
foreach(x->getSolverData(getVariable(fg,x.first),:parametric).val[1] = x.second.val, pairs(d))
232232

233233
# fg.solverParams.showtree = true
234234
# fg.solverParams.drawtree = true

0 commit comments

Comments
 (0)