scalar product of two vector fields

Hi all,

had two simulations using the EQS solvers, with slightly different settings, and I made sure they have the same discretization. I want to compute the scalar product of the J fields of two simulations. How can I go about this?

Thanks