Rename ys0_ into oo_.initial_steady_state and ex0_ into oo_.initial_exo_steady_state

master
Sébastien Villemot 2023-10-23 17:33:16 +02:00
parent 6235e69075
commit 9b50a8a159
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 4 additions and 4 deletions

View File

@ -824,13 +824,13 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
<< " clear_persistent_variables(fileparts(which('dynare')), false)" << endl
<< "end" << endl;
else if (clear_global)
mOutputFile << "clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_;" << endl;
mOutputFile << "clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info;" << endl;
if (!notime)
mOutputFile << "tic0 = tic;" << endl;
mOutputFile << "% Define global variables." << endl
<< "global M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_" << endl
<< "global M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info" << endl
<< "options_ = [];" << endl
<< "M_.fname = '" << basename << "';" << endl
<< "M_.dynare_version = '" << PACKAGE_VERSION << "';" << endl

View File

@ -284,8 +284,8 @@ EndValStatement::writeOutput(ostream &output, [[maybe_unused]] const string &bas
<< "% ENDVAL instructions" << endl
<< "%" << endl;
// Writing endval block to set terminal values for variables
output << "ys0_= oo_.steady_state;" << endl
<< "ex0_ = oo_.exo_steady_state;" << endl;
output << "oo_.initial_steady_state = oo_.steady_state;" << endl
<< "oo_.initial_exo_steady_state = oo_.exo_steady_state;" << endl;
writeInitValues(output);
}