dynare_solve.m: allow calling function directly

time-shift
Johannes Pfeifer 2021-06-04 17:58:48 +02:00
parent 765109ee01
commit e546d686eb
1 changed files with 5 additions and 1 deletions

View File

@ -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;