3 % Benchmark
function for MassAssemblingP1 functions.
9 % OptFEM2DP1 [V1.2b1] - Copyright (C) 2013 CJS (LAGA)
11 % This file is part of OptFEM2DP1.
12 % OptFEM2DP1 is free software: you can redistribute it and/or modify
13 % it under the terms of the GNU General Public License as published by
14 % the Free Software Foundation, either version 3 of the License, or
15 % (at your option) any later version.
17 % OptFEM2DP1 is distributed in the hope that it will be useful,
18 % but WITHOUT ANY WARRANTY; without even the implied warranty of
19 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 % GNU General Public License
for more details.
22 % You should have received a copy of the GNU General Public License
23 % along with
this program. If not, see <http:
27 p=p.addParamValue('LN', [20:20:100] , @isnumeric );
28 p=p.parse(varargin{:});
30 p.addParamValue(
'LN', [20:20:100], @isnumeric );
36 fprintf(
'---------------------------------------------------------\n')
37 fprintf('BENCH (Mass Matrix Assembling) %d\n',k)
38 fprintf(' Vertices number : %d - Triangles number : %d\n',Th.nq,Th.nme)
39 fprintf(' Matrix size : %d\n',Th.nq)
45 fprintf(' CPU times base (ref) : %3.4f (s)\n',T(k,1))
49 fprintf(' CPU times OptV0 : %3.4f (s) - Speed Up X%3.3f\n',T(k,2),T(k,1)/T(k,2))
53 fprintf(' CPU times OptV1 : %3.4f (s) - Speed Up X%3.3f\n',T(k,3),T(k,1)/T(k,3))
57 fprintf(' CPU times OptV2 : %3.4f (s) - Speed Up X%3.3f\n',T(k,4),T(k,1)/T(k,4))
63 bench.LN=p.Results.LN;