I want to calculate L2 norm of a 3D unstructured grid to compare my simulation results in two different mesh sizes as coarse and fine. I read this answer and it seems in three-dimensional space, I should use this formula:
$$ L^{2}-norm = \sqrt{\sum_{\Omega} (\phi_{coarse}-\phi_{fine})^{2} \Delta x^{3}} $$
My grid is a uniform grid with size $\Delta x$ but it is unstructured and as a result, $\phi$ is stored as a 1D vector based on ids of each point in unstructured grid instead of having $\phi$ as a three-dimensional matrix as: $\phi(i,j,k)$, which is common for structured grids. My question is: Should I use the above formula with power 3 of $\Delta x$ or cause I stored my results as 1D vectors, drop the power 3 and use this formula instead?
$$ L^{2}-norm = \sqrt{\sum_{\Omega} (\phi_{coarse}-\phi_{fine})^{2} \Delta x} $$
I really appreciate any suggestion or answer.