Skip to content

Commit dff229d

Browse files
author
Remi Prebet
committed
do not include additional variables in the variables permutation
1 parent cac388b commit dff229d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/algorithms/solvers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ function _core_msolve(
142142

143143
jl_vnames = Base.unsafe_wrap(Array, res_vnames[], jl_rp_nr_vars)
144144
vsymbols = [Symbol(unsafe_string(jl_vnames[i])) for i in 1:jl_rp_nr_vars]
145-
#= get possible variable permutation =#
146-
perm = sortperm(vsymbols)
145+
#= get possible variable permutation, ignoring additional variables=#
146+
perm = sortperm(vsymbols[1:1:nr_vars])
147147

148148
rat_param = _get_rational_parametrization(jl_ld, jl_len,
149149
jl_cf, jl_cf_lf, jl_rp_nr_vars)

0 commit comments

Comments
 (0)