From b32bf860553c4480b041dbe859c2d146b1d561f9 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Sun, 20 Apr 2014 21:23:32 +0200 Subject: [PATCH] fixing bugs in commit 182c27f --- DynareMain.cc | 4 ++-- DynareMain2.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DynareMain.cc b/DynareMain.cc index 01648868..7fed1e78 100644 --- a/DynareMain.cc +++ b/DynareMain.cc @@ -215,7 +215,7 @@ main(int argc, char **argv) } else if (strlen(argv[arg]) >= 8 && !strncmp(argv[arg], "language", 8)) { - if (strlen(argv[arg]) <= 9 || argv[arg][6] != '=') + if (strlen(argv[arg]) <= 9 || argv[arg][8] != '=') { cerr << "Incorrect syntax for language option" << endl; usage(); @@ -234,7 +234,7 @@ main(int argc, char **argv) language = python; else { - cerr << "Incorrect syntax for ouput option" << endl; + cerr << "Incorrect syntax for language option" << endl; usage(); } } diff --git a/DynareMain2.cc b/DynareMain2.cc index 60a06064..8f82a059 100644 --- a/DynareMain2.cc +++ b/DynareMain2.cc @@ -27,7 +27,7 @@ void main2(stringstream &in, string &basename, bool debug, bool clear_all, bool no_tmp_terms, bool no_log, bool no_warn, bool warn_uninit, bool console, bool nograph, bool nointeractive, bool parallel, const string ¶llel_config_file, const string &cluster_name, bool parallel_slave_open_mode, - bool parallel_test, bool nostrict, FileOutputType output_mode, LanguageOutputType lang + bool parallel_test, bool nostrict, FileOutputType output_mode, LanguageOutputType language #if defined(_WIN32) || defined(__CYGWIN32__) , bool cygwin, bool msvc #endif @@ -58,7 +58,7 @@ main2(stringstream &in, string &basename, bool debug, bool clear_all, bool no_tm // Write outputs if (output_mode != none) - mod_file->writeExternalFiles(basename, output_mode, cuda); + mod_file->writeExternalFiles(basename, output_mode, language); else mod_file->writeOutputFiles(basename, clear_all, no_log, no_warn, console, nograph, nointeractive, config_file #if defined(_WIN32) || defined(__CYGWIN32__)