3 %
function computing homogeneous dirichlet-values by
4 % pointwise evaluations
6 % required fields of params:
7 % c_dir : constant dirichlet value
12 if ~isempty(glob) && size(glob,1) < size(glob,2)
13 warning('coordinates in variable glob are given row-wise, but expected them to be column-wise');
19 decomp_mode = params.decomp_mode;
23 Udirichlet = params.c_dir;
24 elseif decomp_mode == 0
25 Udirichlet = params.c_dir * ones(length(glob),1);
26 elseif decomp_mode == 1
27 Udirichlet = { ones(length(glob),1) };
function Udirichlet = dirichlet_values_homogeneous(glob, params)
function computing homogeneous dirichlet-values by pointwise evaluations