2 %
function performing an l2 projection of an analytical
function
3 % func to the fv space. A quadrature of degree qdeg is used.
5 % model.pdeg specify the degree of the discrete fv
function.
6 % (currently only first order supported.)
8 % Bernard Haasdonk 3.9.2009
10 disp(
'this is superfluous, as given by l2project');
12 model.evaluate_basis = @fv_evaluate_basis;
13 U = triaquadrature(qdeg,@func_phi_product,func,grid, ...
function U = fv_l2project(func, qdeg,gridbase grid, model)
func to the fv space. A quadrature of degree qdeg is used.