Hello,

What i want to do seems to be pretty simple, but i can’t find a way to do it…

Let’s say i have a 2x2rank tensor A.

I want to compute simple operations like:

`res=a*A[0,0]+b/A[0,1]+A[0,0]*A[1,0]`

with a and b scalar like variables.

Using brackets to access tensor components seems to be correct according to the doc (https://fenicsproject.org/pub/documents/ufl/ufl-user-manual/ufl-user-manual.pdf, page 32) but the solver diverged. When i try to debug the code to find the problem, it seems that all variables defined with a operation based on tensor component are problematics.

Is the use of tensor components is correct ?

Thanks