diff --git a/parser.src/ModelTree.cc b/parser.src/ModelTree.cc index 800741611..4cb1bdb51 100644 --- a/parser.src/ModelTree.cc +++ b/parser.src/ModelTree.cc @@ -172,7 +172,8 @@ ModelTree::writeLocalParameters(ostream &output, bool is_dynamic) const int id = it->first; NodeID value = it->second; output << symbol_table.getNameByID(eLocalParameter, id) << " = "; - value->writeOutput(output, is_dynamic, temporary_terms, offset); + // Use an empty set for the temporary terms + value->writeOutput(output, is_dynamic, temporary_terms_type(), offset); output << ";" << endl; } } diff --git a/parser.src/include/ModelTree.hh b/parser.src/include/ModelTree.hh index 622f4586d..f1c247cf9 100644 --- a/parser.src/include/ModelTree.hh +++ b/parser.src/include/ModelTree.hh @@ -59,6 +59,7 @@ private: //! Writes temporary terms void writeTemporaryTerms(ostream &output, bool is_dynamic) const; //! Writes local parameters + /*! No temporary term is used in the output, so that local parameters declarations can be safely put before temporary terms declaration in the output files */ void writeLocalParameters(ostream &output, bool is_dynamic) const; //! Writes model equations void writeModelEquations(ostream &output, bool is_dynamic) const;