Dear Christoph,
If your objective is to compute ubar := (1/vol) \int u(x,y,z) dx dy dz, then this can be done
in userchck as follows:
n = lx1*ly1*lz1*nelv
ubar = glsc2(vx,bm1,n)/volvm1
That command computes the sum i=1:n B_ii vx_i, where B_ii are the entries of the diagonal mass matrix.
Every processor receives that result because of the global (gl) nature of the glsc2 function:
global scalar product involving two arguments
Here,
volvm1 = sum i=1:n B_ii
is the volume (on the velocity-only mesh, v,m1).
hth,
Paul