Skip to content
Snippets Groups Projects
Verified Commit 58aaf5a0 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

datatomfile: fix the name of the .mod file at the top of the generated file

With the new layout of the files generated by the preprocessor, it would always
print “driver.m”, which is not very informative.

(cherry picked from commit 6542ce4a)
parent 54c91f6c
Branches
Tags
No related merge requests found
......@@ -17,7 +17,7 @@ function datatomfile (s, var_list, names)
% provided, all the variables as defined in M_.endo_names will be saved in
% the generated m file.
% Copyright (C) 2001-2018 Dynare Team
% Copyright (C) 2001-2020 Dynare Team
%
% This file is part of Dynare.
%
......@@ -68,8 +68,7 @@ for i=1:n
ivar(i) = i_tmp;
end
end
stack = dbstack;
fprintf(fid,'%% Dataset generated by %s.\n',stack(2).file);
fprintf(fid,'%% Dataset generated by %s.mod\n',M_.fname);
fprintf(fid,['%% ' datestr(now,0) '\n']);
% Save the selected data.
for i = 1:n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment