rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
fv_inner_product_matrix.m
1 function W = fv_inner_product_matrix(model, model_data)
2 %function W = fv_inner_product_matrix(model, model_data)
3 %
4 % function computing the l2 inner product matrix for fv-functions
5 % on the grid.
6 % By this function, inner products between functions can be
7 % computed by their DOF vectors: K = U1' * W * U2;
8 
9 % Bernard Haasdonk 20.7.2006
10 
11 grid = model_data.grid;
12 
13 % currently simple diagonal weighting of element values sufficient
14 W = sparse(1:grid.nelements,1:grid.nelements,grid.A);
15