1 function W = fv_inner_product_matrix(model, model_data)
2 %
function W = fv_inner_product_matrix(model, model_data)
4 %
function computing the l2 inner product matrix
for fv-functions
6 % By
this function, inner products between functions can be
7 % computed by their DOF vectors: K = U1
' * W * U2;
9 % Bernard Haasdonk 20.7.2006
11 grid = model_data.grid;
13 % currently simple diagonal weighting of element values sufficient
14 W = sparse(1:grid.nelements,1:grid.nelements,grid.A);