From cffef33543eef11ec9bf64475e29a6e9bf021532 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Thu, 7 Apr 2016 18:26:05 +0200 Subject: [PATCH] fixed bug with external function introduced in the refactoring to the _static file --- preprocessor/StaticModel.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/preprocessor/StaticModel.cc b/preprocessor/StaticModel.cc index d6bef86d0..066c83193 100644 --- a/preprocessor/StaticModel.cc +++ b/preprocessor/StaticModel.cc @@ -2135,10 +2135,9 @@ void StaticModel::writeAuxVarRecursiveDefinitions(ostream &output, ExprNodeOutputType output_type) const { deriv_node_temp_terms_t tef_terms; - temporary_terms_t temporary_terms; for (int i = 0; i < (int) aux_equations.size(); i++) { - dynamic_cast(aux_equations[i]->substituteStaticAuxiliaryDefinition())->writeOutput(output, output_type, temporary_terms, tef_terms); + dynamic_cast(aux_equations[i]->substituteStaticAuxiliaryDefinition())->writeOutput(output, output_type, temporary_terms_res, tef_terms); output << ";" << endl; } }