Skip to content
Snippets Groups Projects
Verified Commit acdfc1ad authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

:bug: Julia: auxiliary variables of static model were incorrect in set_auxiliary_variables!

The output was in MATLAB syntax instead of Julia syntax.
parent a8fc8e7a
No related branches found
No related tags found
No related merge requests found
......@@ -766,7 +766,7 @@ StaticModel::writeAuxVarRecursiveDefinitions(ostream &output, ExprNodeOutputType
deriv_node_temp_terms_t tef_terms;
for (auto aux_equation : aux_equations)
if (dynamic_cast<ExprNode *>(aux_equation)->containsExternalFunction())
dynamic_cast<ExprNode *>(aux_equation)->writeExternalFunctionOutput(output, ExprNodeOutputType::matlabStaticModel, {}, {}, tef_terms);
dynamic_cast<ExprNode *>(aux_equation)->writeExternalFunctionOutput(output, output_type, {}, {}, tef_terms);
for (auto aux_equation : aux_equations)
{
dynamic_cast<ExprNode *>(aux_equation->substituteStaticAuxiliaryDefinition())->writeOutput(output, output_type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment