From 22c81ba8057bd908f985cc75b1db47af7cd24b6e Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Sat, 4 Apr 2015 19:22:49 +0200 Subject: [PATCH] Make sure the used global variables are correctly set and available in the base workspace --- ModFile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index a4693cfc..0977b6d9 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -566,14 +566,14 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo if (clear_all) mOutputFile << "clear all" << endl; else if (clear_global) - mOutputFile << "clear M_ options_ oo_ estim_params_ bayestopt_ dataset_;" << endl; + mOutputFile << "clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_;" << endl; mOutputFile << "tic;" << endl << "% Save empty dates and dseries objects in memory." << endl << "dates('initialize');" << endl << "dseries('initialize');" << endl << "% Define global variables." << endl - << "global M_ oo_ options_ ys0_ ex0_ estimation_info" << endl + << "global M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_" << endl << "options_ = [];" << endl << "M_.fname = '" << basename << "';" << endl << "M_.dynare_version = '" << PACKAGE_VERSION << "';" << endl