rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
fv_evaluate_basis.m
1 function res = fv_evaluate_basis(lcoord,df)
2 %function res = fv_evaluate_basis(lcoord,df)
3 %
4 % evaluation of fv reference basis `\hat \phi_i, i=1,...,m` in point
5 % `\hat x = \mbox{lcoord}`.
6 %
7 % currently only pdeg0 fv functions are supported, hence
8 % all values are 1.0
9 % Res is a dimrange x ndofs_per_element (=m) array
10 % lcoord is a 2-vector with the barycentric coordinates in the
11 % triangle.
12 %
13 
14 % Bernard Haasdonk 28.1.2009
15 
16 switch df.pdeg
17  case 0
18  res = 1;
19  case {1,2,3,4}
20  error('pdeg not yet supported!');
21 end;
22