ModelTree::equationTypeDetermination(): remove “mfs” as an input argument

It is already available as a class member.
master
Sébastien Villemot 2023-10-13 17:02:36 -04:00
parent 613a8578ee
commit db3a6bc301
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 3 additions and 3 deletions

View File

@ -511,7 +511,7 @@ ModelTree::computePrologueAndEpilogue()
}
void
ModelTree::equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives, int mfs)
ModelTree::equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives)
{
equation_type_and_normalized_equation.clear();
equation_type_and_normalized_equation.resize(equations.size());
@ -2018,7 +2018,7 @@ ModelTree::computingPassBlock(const eval_context_t &eval_context, bool no_tmp_te
return;
auto [prologue, epilogue] = computePrologueAndEpilogue();
auto first_order_endo_derivatives = collectFirstOrderDerivativesEndogenous();
equationTypeDetermination(first_order_endo_derivatives, mfs);
equationTypeDetermination(first_order_endo_derivatives);
cout << "Finding the optimal block decomposition of the " << modelClassName() << "..." << endl;
computeBlockDecomposition(prologue, epilogue);
reduceBlockDecomposition();

View File

@ -478,7 +478,7 @@ private:
Returns the sizes of the prologue and epilogue. */
pair<int, int> computePrologueAndEpilogue();
//! Determine the type of each equation of model and try to normalize the unnormalized equation
void equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives, int mfs);
void equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives);
/* Fills the max lags/leads and n_{static,mixed,forward,backward} fields of a
given block.
Needs the fields size and first_equation. */