From ba8518bf43e20fbfc3cb6ac2558df2774ba3bb1a Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 29 Jul 2015 11:07:36 +0200 Subject: [PATCH] create options --- ModFile.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index 8e903d21..a5db08b9 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -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() << ", "