Commit e546d686 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

dynare_solve.m: allow calling function directly

parent 765109ee
Pipeline #5450 passed with stages
in 79 minutes and 54 seconds
......@@ -40,7 +40,11 @@ if isoctave
[~, name, ext]=fileparts(stack(2).file);
caller_file_name=[name,ext];
else
caller_file_name=stack(2).file;
if size(stack,1)>1
caller_file_name=stack(2).file;
else
caller_file_name=stack(1).file;
end
end
if strcmp(caller_file_name, 'solve_stacked_problem.m') || strcmp(caller_file_name, 'sim1_purely_backward.m')
tolf = options.dynatol.f;
......
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