Eötvös Quantum Utilities  v4.9.146
Providing the Horsepowers in the Quantum Realm
automatic_test_MEX.m
Go to the documentation of this file.
1 %% Eotvos Quantum Transport Utilities
2 % Copyright (C) 2017 Peter Rakyta, Ph.D
3 %
4 % This program is free software: you can redistribute it and/or modify
5 % it under the terms of the GNU General Public License as published by
6 % the Free Software Foundation, either version 3 of the License, or
7 % (at your option) any later version.
8 %
9 % This program is distributed in the hope that it will be useful,
10 % but WITHOUT ANY WARRANTY; without even the implied warranty of
11 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 % GNU General Public License for more details.
13 %
14 % You should have received a copy of the GNU General Public License
15 % along with this program. If not, see http://www.gnu.org/licenses/.
16 %
17 %> @{
18 %> @file automatic_test_MEX.m
19 %> @brief Automatic test procedure of the compiled MEX files
20 %> @Available
21 %> EQuUs v4.8 or later
22 %> @}
23 %> @brief Automatic test procedure of the compiled MEX files
24 function automatic_test_MEX()
25 
26  MEX_files = dir( fullfile(pwd, ['*.', mexext]));
27 
28 
29  for idx = 1:length(MEX_files)
30  if MEX_files(idx).isdir
31  continue;
32  end
33 
34  display('***************************************************************************')
35  fncname = MEX_files(idx).name;
36  disp(['Testing ', fncname]);
37  fncname = [fncname(1:end-length(mexext)-1), '_test'];
38  feval(fncname);
39  disp(' ')
40  disp(' ')
41  end
42 end
function test(arg1, arg2)
Brief description of the function.
function Transport(Energy, B)
Calculates the conductance at a given energy value.
function automatic_test_MEX()
Automatic test procedure of the compiled MEX files.