rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
fv_element_mean.m
Go to the documentation of this file.
1 function Umean = fv_element_mean(model, model_data, U,I)
2 % function Umean = fv_element_mean(model, model_data, U,I)
3 % function computing the element averages of a discrete function U
4 % in the grid elements with indices I. Most arguments are dummy,
5 % but required for more general discrete functions, e.g. p1, etc.
6 
7 % Bernard Haasdonk 16.5.2007
8 
9 Umean = U(I);
10