2 %
function benchMassP1()
3 % Benchmark
function for MassAssembling `P_1` functions in 3D
15 p.addParamValue(
'LN', [20:10:60], @isnumeric );
21 fprintf(
'---------------------------------------------------------\n')
22 fprintf('BENCH (Mass Matrix Assembling) %d\n',k)
23 fprintf(' Vertices number : %d - Tetrahedra number : %d\n',Th.nq,Th.nme)
24 fprintf(' Matrix size : %d\n',Th.nq)
30 fprintf(' CPU times base (ref) : %3.4f (s)\n',
T(k,1))
34 fprintf(' CPU times OptV0 : %3.4f (s) - Error = %e - Speed Up X%3.3f\n',
T(k,2),norm(Mb-
M,Inf),
T(k,1)/
T(k,2))
38 fprintf(' CPU times OptV1 : %3.4f (s) - Error = %e - Speed Up X%3.3f\n',
T(k,3),norm(Mb-M,Inf),
T(k,1)/
T(k,3))
42 fprintf(' CPU times OptV2 : %3.4f (s) - Error = %e - Speed Up X%3.3f\n',
T(k,4),norm(Mb-M,Inf),
T(k,1)/
T(k,4))
48 bench.
LN=
p.Results.
LN;