https://github.com/team-pancho/HDG3D
Tip revision: e06c667b7f85b50eaa51810e300be5e002e4f24b authored by Hasan H. Eruslu on 02 October 2019, 21:47:09 UTC
Updated website links with repo links. Fixes #1
Updated website links with repo links. Fixes #1
Tip revision: e06c667
createTau3d.m
function tau=createTau3d(Nelts,option)
% tau=createTau3d(Nelts,option)
%
% Input:
% Nelts : number of elements
% option : (1) tau = 1
% (2) SFHDG on the first face
% (3) SFHDG on a random face
% Output:
% tau : 4 x Nelts
%
% Last modified: March 14, 2013
switch option
case 1
tau=ones(4,Nelts);
case 2
tau=[ones(1,Nelts);...
zeros(3,Nelts)];
case 3
where=ceil(4*rand(1,Nelts));
tau=sparse(where,1:Nelts,1);
tau=full(tau);
end
return