1 function res = rhs_robin(x, model, df_info, i, elind, edgeind)
2 %
function res = rhs_robin(x, model, df_info, i, elind, edgeind)
4 % auxiliary
function for integral kernel
for r_robin
5 % integral kernel on all robin-edges simultaneously
6 % here x is a scalar value on unit interval
7 % f(x) = g_R/beta * hatphi_i
8 % multiplication with |edge| is realized in caller after quadrature.
9 %
function can handle cell-array valued data
11 % B. Haasdonk 22.2.2011
15 for local_edge_id = 1:3
16 lcoord = llocal2local(df_info.grid,local_edge_id,x); % local coord
for x on edge 1
17 hat_phi_i = evaluate_basis_function(df_info,lcoord,i);
18 elinds = elind(edgeind==local_edge_id);
19 beta = model.robin_beta(df_info.grid,elinds,local_edge_id,x,model); ...
22 xmodel.robin_values(...
23 df_info.grid, xelind, xlocal_edge_ind, ...
25 elinds, local_edge_id, x, model);
28 (beta.^(-1)).*g_R * hat_phi_i; ...
32 res = cell(1,length(g_R));
33 for q = 1:length(g_R);
39 (beta.^(-1)).*g_R{q} * hat_phi_i; ...
function varargout = cache_function(func_ptr, varargin)
simple caching of function call inputs are cached too!