Hi,
The question is, given a ufl form with a mass matrix of a problem:
m = inner(u, v)*dx
how can i calculate the trace (first invariant) of it?. I already try with:
Aij = v[i]*v[j]
A = as_tensor(Aij, (i,j))
t = tr(A)
but t doesn't contain explicitly the value of the trace of A, and i need to see it.
Thanks in advice!