Merge branch 'master' into bitbucket-use-dynSeries

issue#70
Stéphane Adjemian (Charybdis) 2014-05-18 09:13:09 +02:00
commit 13358ce992
5 changed files with 6 additions and 1 deletions

View File

@ -4285,3 +4285,4 @@ DynamicModel::dynamicOnlyEquationsNbr() const
}

View File

@ -221,6 +221,7 @@ public:
void writeDynamicFile(const string &basename, bool block, bool bytecode, bool use_dll, int order) const;
//! Writes file containing parameters derivatives
void writeParamsDerivativesFile(const string &basename) const;
//! Converts to static model (only the equations)
/*! It assumes that the static model given in argument has just been allocated */
void toStatic(StaticModel &static_model) const;

View File

@ -820,4 +820,3 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
cout << "done" << endl;
}

View File

@ -323,6 +323,9 @@ ParsingDriver::add_model_variable(int symb_id, int lag)
if (dynamic_cast<StaticModel *>(model_tree) != NULL && lag != 0)
error("Leads and lags on variables are forbidden in 'planner_objective'.");
if (dynamic_cast<StaticModel *>(model_tree) != NULL && type == eModelLocalVariable)
error("Model local variable " + mod_file->symbol_table.getName(symb_id) + " cannot be used in 'planner_objective'.");
// It makes sense to allow a lead/lag on parameters: during steady state calibration, endogenous and parameters can be swapped
return model_tree->AddVariable(symb_id, lag);
}

View File

@ -152,3 +152,4 @@ SteadyStateModel::writeSteadyStateFile(const string &basename, bool ramsey_model
<< "end" << endl;
}