diff --git a/matlab/dynare_m.exe b/matlab/dynare_m.exe index 75d0007db..d2561ad01 100755 Binary files a/matlab/dynare_m.exe and b/matlab/dynare_m.exe differ diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index 9381545f8..45f5ab3ba 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -49,6 +49,10 @@ ModFile::checkPass() it != statements.end(); it++) (*it)->checkPass(mod_file_struct); + // If order option has not been set, default to 2 + if (!mod_file_struct.order_option) + mod_file_struct.order_option = 2; + // Allow empty model only when doing a standalone BVAR estimation if (model_tree.equation_number() == 0 && (mod_file_struct.check_present diff --git a/preprocessor/Statement.cc b/preprocessor/Statement.cc index 8d385e658..dc629b49f 100644 --- a/preprocessor/Statement.cc +++ b/preprocessor/Statement.cc @@ -23,7 +23,7 @@ ModFileStructure::ModFileStructure() : check_present(false), simul_present(false), stoch_simul_or_similar_present(false), - order_option(2) + order_option(0) { } diff --git a/preprocessor/include/Statement.hh b/preprocessor/include/Statement.hh index 41cf774e5..77dd87449 100644 --- a/preprocessor/include/Statement.hh +++ b/preprocessor/include/Statement.hh @@ -39,7 +39,8 @@ public: //! Whether a stoch_simul, estimation, osr, ramsey_policy statement is present bool stoch_simul_or_similar_present; //! The value of the "order" option of stoch_simul, estimation, osr, ramsey_policy - /*! Defaults to 2 */ + //! Derivation order + /*! First initialized to zero. If user sets order option somewhere in the MOD file, it will be equal to the maximum of order options. Otherwise will default to 2 */ int order_option; };