Commit 51beb9c2 authored by Sébastien Villemot's avatar Sébastien Villemot

New M_.has_external_function field

parent 840b5f4f
Pipeline #1236 passed with stage
in 1 minute and 57 seconds
......@@ -3093,6 +3093,18 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
<< (static_only_equations.size() > 0 ? "true" :"false")
<< ";" << endl;
// Say if model contains an external function call
bool has_external_function = false;
for (size_t eq = 0; eq < equations.size(); eq++)
if (equations[eq]->containsExternalFunction())
{
has_external_function = true;
break;
}
output << modstruct << "has_external_function = "
<< (has_external_function ? "true" : "false")
<< ';' << endl;
vector<int> state_var;
for (int endoID = 0; endoID < symbol_table.endo_nbr(); endoID++)
// Loop on periods
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment