2020-06-23 15:49:27 +02:00
|
|
|
function run_ls2003(block, storage, solve_algo, stack_solve_algo)
|
2011-05-04 16:28:13 +02:00
|
|
|
|
2022-04-13 13:15:19 +02:00
|
|
|
% Copyright © 2010-2013 Dynare Team
|
2011-05-04 16:28:13 +02:00
|
|
|
%
|
|
|
|
% This file is part of Dynare.
|
|
|
|
%
|
|
|
|
% Dynare is free software: you can redistribute it and/or modify
|
|
|
|
% it under the terms of the GNU General Public License as published by
|
|
|
|
% the Free Software Foundation, either version 3 of the License, or
|
|
|
|
% (at your option) any later version.
|
|
|
|
%
|
|
|
|
% Dynare is distributed in the hope that it will be useful,
|
|
|
|
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
% GNU General Public License for more details.
|
|
|
|
%
|
|
|
|
% You should have received a copy of the GNU General Public License
|
2021-06-09 17:33:48 +02:00
|
|
|
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
2011-05-04 16:28:13 +02:00
|
|
|
|
|
|
|
disp(['TEST: ls2003 (block=' num2str(block) ', bytecode=' ...
|
2020-06-23 15:49:27 +02:00
|
|
|
num2str(storage==2) ', use_dll=' num2str(storage==1) ...
|
|
|
|
', solve_algo=' num2str(solve_algo) ...
|
|
|
|
', stack_solve_algo=' num2str(stack_solve_algo) ')...']);
|
2011-05-04 16:28:13 +02:00
|
|
|
fid = fopen('ls2003_tmp.mod', 'w');
|
2010-10-23 10:41:56 +02:00
|
|
|
assert(fid > 0);
|
2011-05-04 16:28:13 +02:00
|
|
|
fprintf(fid, ['@#define block = %d\n@#define bytecode = %d\n' ...
|
2020-06-23 15:49:27 +02:00
|
|
|
'@#define use_dll = %d\n' ...
|
2011-05-04 16:28:13 +02:00
|
|
|
'@#define solve_algo = %d\n@#define stack_solve_algo = %d\n' ...
|
2020-06-23 15:49:27 +02:00
|
|
|
'@#include \"ls2003.mod\"\n'], block, storage==2, storage==1, ...
|
2011-05-04 16:28:13 +02:00
|
|
|
solve_algo, stack_solve_algo);
|
2010-10-23 10:41:56 +02:00
|
|
|
fclose(fid);
|
2011-10-07 15:07:26 +02:00
|
|
|
dynare('ls2003_tmp.mod','console')
|
2011-05-04 16:28:13 +02:00
|
|
|
end
|