Changed the paths to Dynare's prior and post processing hooks.
parent
1ff556ada2
commit
01f2dd2ab1
|
@ -866,9 +866,9 @@ Structure containing the various results of the computations.
|
|||
@section Dynare hooks
|
||||
|
||||
It is possible to call pre and post dynare preprocessor hooks written as matlab scripts.
|
||||
The script @file{@var{FILENAME}_pre_dynare_preprocessor_hook.m} is executed before the
|
||||
The script @file{@var{MODFILENAME}/hooks/priorprocessing.m} is executed before the
|
||||
call to Dynare's preprocessor, and can be used to programatically transform the mod file
|
||||
that will be read by the preprocessor. The script @file{@var{FILENAME}_post_dynare_preprocessor_hook.m}
|
||||
that will be read by the preprocessor. The script @file{@var{MODFILENAME}/hooks/postprocessing.m}
|
||||
is executed just after the call to Dynare's preprocessor, and can be used to programatically
|
||||
transform the files generated by Dynare's preprocessor before actual computations start. The
|
||||
pre and/or post dynare preprocessor hooks are executed if and only if the aforementioned scripts
|
||||
|
|
|
@ -118,8 +118,8 @@ if ~exist(fname,'file') || isequal(fname,'dir')
|
|||
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'])
|
||||
if exist(fname(1:end-4),'dir') && exist([fname(1:end-4) filesep 'hooks'],'dir') && exist([fname(1:end-4) filesep 'hooks/priorprocessing.m'],'file')
|
||||
run([fname(1:end-4) filesep 'hooks/priorprocessing'])
|
||||
end
|
||||
|
||||
command = ['"' dynareroot 'dynare_m" ' fname] ;
|
||||
|
@ -135,8 +135,8 @@ if ismember('onlymacro', varargin)
|
|||
end
|
||||
|
||||
% 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'])
|
||||
if exist(fname(1:end-4),'dir') && exist([fname(1:end-4) filesep 'hooks'],'dir') && exist([fname(1:end-4) filesep 'hooks/postprocessing.m'],'file')
|
||||
run([fname(1:end-4) filesep 'hooks/postprocessing'])
|
||||
end
|
||||
|
||||
% Save preprocessor result in logfile (if `no_log' option not present)
|
||||
|
|
Loading…
Reference in New Issue