Commit ffc6c8fd authored by michel's avatar michel
Browse files

v4: fixed bugs for dynasave

    updated dynare_m.exe

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1819 ac1d8469-bf42-47a9-8791-bf33cf982152
parent aafe0013
No preview for this file type
......@@ -42,10 +42,9 @@ function dynasave(s,var_list)
% dyn2vec(var_list(1),var_list(1));
eval([var_list(1) '=oo_.endo_simul(ivar(1),:)'';'])
eval(['save ' s ' ' var_list(1) ' -mat'])
for i = 2:n
% dyn2vec(var_list(i),var_list(i));
eval([var_list(i) '=oo_.endo_simul(ivar(i),:)'';'])
eval(['save ' s ' ' var_list(i) ' -append -mat'])
end
for dynare__i_ = 2:n
eval([var_list(dynare__i_) '=oo_.endo_simul(ivar(dynare__i_),:)'';'])
eval(['save ' s ' ' var_list(dynare__i_) ' -append -mat'])
end
......@@ -771,10 +771,10 @@ void
DynaSaveStatement::writeOutput(ostream &output, const string &basename) const
{
symbol_list.writeOutput("var_list_", output);
output << "dynasave(" << filename;
output << "dynasave('" << filename;
if (ext.size() > 0)
output << "," << ext;
output << ",var_list_);\n";
output << "',var_list_);\n";
}
DynaTypeStatement::DynaTypeStatement(const SymbolList &symbol_list_arg,
......
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