From 38e4480893b5344885444ddd045db84ba6ec069a Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 29 Jul 2015 13:31:42 +0200 Subject: [PATCH] add linear option to options --- ModFile.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index 7e51a4d7..fbeb3a90 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -1086,9 +1086,17 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output) << "using Utils" << endl << "using " << basename << "Static" << endl << "using " << basename << "Dynamic" << endl << endl - << "export model" << endl << endl + << "export model" << endl; + + // Write Options + jlOutputFile << endl << "options = dynare_options()" << endl - << "options.dynare_version = \"" << PACKAGE_VERSION << "\"" << endl << endl + << "options.dynare_version = \"" << PACKAGE_VERSION << "\"" << endl; + if (linear == 1) + jlOutputFile << "options.linear = true" << endl; + + // Write Model + jlOutputFile << endl << "model = dynare_model()" << endl << "model.fname = \"" << basename << "\"" << endl << "model.dynare_version = \"" << PACKAGE_VERSION << "\"" << endl