create options

issue#70
Houtan Bastani 2015-07-29 11:07:36 +02:00
parent 0a3a5a0a03
commit ba8518bf43
1 changed files with 3 additions and 2 deletions

View File

@ -1082,10 +1082,13 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output)
<< " # from " << basename << ".mod" << endl
<< "##" << endl
<< "using DynareModel" << endl
<< "using DynareOptions" << endl
<< "using Utils" << endl
<< "using " << basename << "Static" << endl
<< "using " << basename << "Dynamic" << endl << endl
<< "export model__" << endl << endl
<< "options = dynare_options()" << endl
<< "options.dynare_version = \"" << PACKAGE_VERSION << "\"" << endl << endl
<< "model__ = model()" << endl
<< "model__.fname = \"" << basename << "\"" << endl
<< "model__.dynare_version = \"" << PACKAGE_VERSION << "\"" << endl
@ -1098,8 +1101,6 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output)
<< "model__.eq_nbr = " << dynamic_model.equation_number() << endl
<< "model__.ramsey_eq_nbr = " << ramsey_eqn_nbr << endl;
if (mod_file_struct.calibrated_measurement_errors)
jlOutputFile << "model__.h = zeros(Float64,"
<< symbol_table.observedVariablesNbr() << ", "