Hi everyone, I am trying to generate a linear problem $Ax = b$, where
$$ A = \int f_1 \otimes f_1 $$
$$ b = \int f_2 $$
where $f_1, f_2$ are some vector fields. I am currently assembling each coordinate
A[i,j] = assemble( f_1[i] * f_1[j] * dx )
b[i] = assemble ( f_2[i] * dx )
which is of course very slow when I use fine meshes. I would like to formulate this as a variational problem so that the underlying matrix handler (Petsc in my case) does everything faster, but my problem is that it assembly only works on scalar integrals. Is there a trick for this?
Thanks!