Skip to content
Snippets Groups Projects
Verified Commit 5f1ae3bb authored by Willi Mutschler's avatar Willi Mutschler
Browse files

:bug: Fix bugs in parallel toolbox introduced in 47af0c

1. 'fGlobalVar' was misspelled
2. Removing the eval crashes the parallel option as global variables are not passed correctly. Because it originally was an assignment where the variable named options_ was assigned to fGlobalVar.options_, but after 47af0cdewe only assign the string 'options_' stored in GlobalNames{j}.
parent bc69f6a1
Branches
Tags
1 merge request!2244Bugfixes for parallel and estimation
......@@ -12,7 +12,7 @@ function storeGlobalVars(fname,append)
% None
%
%
% Copyright © 2009-2017 Dynare Team
% Copyright © 2009-2023 Dynare Team
%
% This file is part of Dynare.
%
......@@ -34,7 +34,7 @@ GlobalNames = who('global');
for j=1:length(GlobalNames)
eval(['global ',GlobalNames{j},';']);
fGlobalvar.(GlobalNames{j}) = GlobalNames{j};
fGlobalVar.(GlobalNames{j}) = eval(GlobalNames{j});
end
if nargin<2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment