trunk:
* removed obsolete global variables "endval_" and "rplottype_" * removed duplicate initialization of options_.replic git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2295 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
c822ce1ef0
commit
39afe5b0b2
|
@ -153,8 +153,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
|
||||||
if (clear_all)
|
if (clear_all)
|
||||||
mOutputFile << "clear all" << endl;
|
mOutputFile << "clear all" << endl;
|
||||||
mOutputFile << "tic;" << endl;
|
mOutputFile << "tic;" << endl;
|
||||||
mOutputFile << "global M_ oo_" << endl;
|
mOutputFile << "global M_ oo_ options_" << endl;
|
||||||
mOutputFile << "global options_ endval_" << endl;
|
|
||||||
mOutputFile << "global ys0_ ex0_ ct_" << endl;
|
mOutputFile << "global ys0_ ex0_ ct_" << endl;
|
||||||
mOutputFile << "options_ = [];" << endl;
|
mOutputFile << "options_ = [];" << endl;
|
||||||
mOutputFile << "M_.fname = '" << basename << "';" << endl;
|
mOutputFile << "M_.fname = '" << basename << "';" << endl;
|
||||||
|
|
|
@ -83,8 +83,7 @@ InitValStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
<< "% INITVAL instructions" << endl
|
<< "% INITVAL instructions" << endl
|
||||||
<< "%" << endl;
|
<< "%" << endl;
|
||||||
// Writing initval block to set initial values for variables
|
// Writing initval block to set initial values for variables
|
||||||
output << "options_.initval_file = 0;" << endl
|
output << "options_.initval_file = 0;" << endl;
|
||||||
<< "endval_=0;" << endl;
|
|
||||||
|
|
||||||
writeInitValues(output);
|
writeInitValues(output);
|
||||||
|
|
||||||
|
@ -113,8 +112,7 @@ EndValStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
<< "%" << endl;
|
<< "%" << endl;
|
||||||
// Writing endval block to set terminal values for variables
|
// Writing endval block to set terminal values for variables
|
||||||
output << "ys0_= oo_.steady_state;" << endl
|
output << "ys0_= oo_.steady_state;" << endl
|
||||||
<< "ex0_ = oo_.exo_steady_state;" << endl
|
<< "ex0_ = oo_.exo_steady_state;" << endl;
|
||||||
<< "endval_ = 1;" << endl;
|
|
||||||
|
|
||||||
writeInitValues(output);
|
writeInitValues(output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue