Commit 38f91226 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added the possibility to use pre and post dynare preprocessor hooks defined by matlab scripts.

parent 2d1a1fc7
......@@ -96,15 +96,24 @@ if length(d) == 0
error(['DYNARE: can''t open ' fname])
end
% pre-dynare-preprocessor-hook
if exist([fname(1:end-4) '_pre_dynare_preprocessor_hook.m'],'file')
eval([fname(1:end-4) '_pre_dynare_preprocessor_hook'])
end
command = ['"' dynareroot 'dynare_m" ' fname] ;
for i=2:nargin
command = [command ' ' varargin{i-1}];
end
[status, result] = system(command);
disp(result)
% post-dynare-prerocessor-hook
if exist([fname(1:end-4) '_post_dynare_preprocessor_hook.m'],'file')
eval([fname(1:end-4) '_post_dynare_preprocessor_hook'])
end
% Save preprocessor result in logfile (if `no_log' option not present)
no_log = 0;
for i=2:nargin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment