Save empty dates and dseries objects in memory (base workspace) instead of disk (faster). Added an initialization mode for dates and dseries constructor. The following commands:

dates('initialization');
dseries('initialization');

create variables emptydatesobject and emptydseriesobject in base workspace.
issue#70
Stéphane Adjemian (Charybdis) 2014-05-14 15:54:15 +02:00
parent 63706abf2b
commit a6ffab3e7f
1 changed files with 4 additions and 0 deletions

View File

@ -554,6 +554,10 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
mOutputFile << "clear all" << 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
<< "options_ = [];" << endl
<< "M_.fname = '" << basename << "';" << endl