Dear all,
I am porting a software from Python to C++, but I am missing one little piece: how to integrate a function in C++.
In Python, I did the following:
theta = Function(V)
number = assemble(q(u, theta)*dx)
Both theta and u are defined over a VectorFunctionSpace, and q returns a scalar (it's basically an inner product). The result is, obviously, a single number.
How can I do this in C++?
I'm not particularly skilled in UFL to know this, but I see that assmeble could do exactly what I'd need. However, I cannot imagine the UFL part...
Thanks for any hint!