Skip to content
Snippets Groups Projects
Commit 72331a20 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix block_shift_constraint for new version of isl.

parent b08fb8cb
No related branches found
No related tags found
No related merge requests found
......@@ -299,7 +299,7 @@ def cast_constraint_to_space(cns, new_space, as_equality=None):
def block_shift_constraint(cns, iname, multiple, as_equality=None):
cns = copy_constraint(cns, as_equality=as_equality)
cns.set_constant(cns.get_constant()
cns = cns.set_constant(cns.get_constant()
+ cns.get_coefficients_by_name()[iname]*multiple)
return cns
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment