Hi,
I have this piece of code that was provided on this forum:
form = inner(u, v)*dx
I = assemble(form)
I.zero()
I.set_diagonal(interpolate(Constant(1), V).vector())
But when I try to run it, it returns the following error:
AttributeError: 'Matrix' object has no attribute 'set_diagonal'
though it seems to exist (see here)
Did the name of that method change?
Thanks a lot!
Vincent