is_multilinear algorithm fails with sym

Issue #58 resolved
Christophe Hennekinne created an issue

When using the symmetric operator sym, the function is_multilinear fails to report the form as linear:

from ufl import *
from ufl.algorithms import *

element = TensorElement("CG", triangle, 1)
arg = TestFunction(element)

print is_multilinear(arg + transpose(arg))
print is_multilinear(sym(arg))

From what I have come to understand, it is due to the operator sym not listed as linear in the class ufl.algorithms.argument_dependencies.ArgumentDependencyExtracter

Comments (4)

  1. Log in to comment