Make sure the used global variables are correctly set and available in the base workspace
parent
bbd12a226e
commit
5131f3907f
|
@ -28,10 +28,11 @@ function global_initialization()
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
global oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_
|
global oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_ dataset_ dataset_info
|
||||||
|
|
||||||
estim_params_ = [];
|
estim_params_ = [];
|
||||||
bayestopt_ = [];
|
bayestopt_ = [];
|
||||||
|
dataset_=[];
|
||||||
|
dataset_info=[];
|
||||||
options_.datafile = '';
|
options_.datafile = '';
|
||||||
options_.dirname = M_.fname;
|
options_.dirname = M_.fname;
|
||||||
M_.dname = M_.fname;
|
M_.dname = M_.fname;
|
||||||
|
|
|
@ -566,14 +566,14 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo
|
||||||
if (clear_all)
|
if (clear_all)
|
||||||
mOutputFile << "clear all" << endl;
|
mOutputFile << "clear all" << endl;
|
||||||
else if (clear_global)
|
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
|
mOutputFile << "tic;" << endl
|
||||||
<< "% Save empty dates and dseries objects in memory." << endl
|
<< "% Save empty dates and dseries objects in memory." << endl
|
||||||
<< "dates('initialize');" << endl
|
<< "dates('initialize');" << endl
|
||||||
<< "dseries('initialize');" << endl
|
<< "dseries('initialize');" << endl
|
||||||
<< "% Define global variables." << 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
|
<< "options_ = [];" << endl
|
||||||
<< "M_.fname = '" << basename << "';" << endl
|
<< "M_.fname = '" << basename << "';" << endl
|
||||||
<< "M_.dynare_version = '" << PACKAGE_VERSION << "';" << endl
|
<< "M_.dynare_version = '" << PACKAGE_VERSION << "';" << endl
|
||||||
|
|
Loading…
Reference in New Issue