#214: in which order are auxiliary variable definitions stored ? --------------------------+------------------------------------------------- Reporter: michel | Owner: michel Type: bug | Status: new Priority: blocker | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- Comment(by sebastien): The aux vars in DynamicModel::substituteLeadLagInternal() and DynamicModel::substituteExpectation() are added in front of the deque. The order is taken care of, but of course a bug cannot be ruled out. The ModelTree::addAuxEquation() method (which adds at the back of the deque) is only used when cloning a ModelTree or converting a DynamicModel to StaticModel, in order to keep the order during the cloning/conversion. Concerning the bug that you mention in StaticModel, can you be more specific or give an example? Also in that case I have taken care of the order (subject to the same disclaimer). -- Ticket URL: <https://www.dynare.org/trac/ticket/214#comment:1> Dynare <http://www.dynare.org> The Dynare project