Commit 7685a0cc authored by Sébastien Villemot's avatar Sébastien Villemot

Octave compatibility fix

Now that the set_auxiliary_variables file is in a "+" directory, Octave fails
at str2func if the file does not exist.
parent ff676f55
......@@ -46,11 +46,9 @@ steadystate_flag = options.steadystate_flag;
params = M.params;
exo_ss = [oo.exo_steady_state; oo.exo_det_steady_state];
if length(M.aux_vars) > 0 && ~steadystate_flag
if length(M.aux_vars) > 0 && ~steadystate_flag && M.set_auxiliary_variables
h_set_auxiliary_variables = str2func([M.fname '.set_auxiliary_variables']);
if M.set_auxiliary_variables
ys_init = h_set_auxiliary_variables(ys_init,exo_ss,M.params);
ys_init = h_set_auxiliary_variables(ys_init,exo_ss,M.params);
if options.ramsey_policy
Markdown is supported
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