#224: Erase generated steady state files ---------------------+------------------------------------------------------ Reporter: stepan | Owner: Type: bug | Status: new Priority: major | Milestone: Component: General | Version: 4.2.2 Keywords: | ---------------------+------------------------------------------------------ Old steadystate files (generated by the steady_state block) should be erased before any computation. In the current setting, if the steady_state block is commented out and if the user changes the model (for instance by changing a parameter to an exogenous variable) then Dynare crashes (because a parameter is then missing).
#224: Erase generated steady state files --------------------------+------------------------------------------------- Reporter: stepan | Owner: sebastien Type: bug | Status: accepted Priority: major | Milestone: Component: Preprocessor | Version: 4.2.2 Keywords: | --------------------------+------------------------------------------------- Changes (by sebastien):
* owner: => sebastien * status: new => accepted * component: General => Preprocessor
#224: Erase generated steady state files --------------------------+------------------------------------------------- Reporter: stepan | Owner: sebastien Type: bug | Status: accepted Priority: major | Milestone: Component: Preprocessor | Version: 4.2.2 Keywords: | --------------------------+-------------------------------------------------
Comment(by sebastien):
Fixed in master in 7c6446032fd6a0b607ca5b0366962948b222e955.
However the issue is not easy to solve in 4.2, because in this branch the generated steady state file is still called "_steadystate.m" (while it is "_steadystate2.m" in master). The preprocessor cannot distinguish between a generated and a hand written steady state file, and therefore we can't implement an automatic deletion of the file. We must either leave things as they are in 4.2, or backport the changes that renamed steadystate.m to steadystate2.m.
My personal opinion is that we should leave things as they are, the changes are potentially too intrusive.
#224: Erase generated steady state files ---------------------------+------------------------------------------------ Reporter: stepan | Owner: sebastien Type: bug | Status: closed Priority: major | Milestone: Component: Preprocessor | Version: 4.2.2 Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by sebastien):
* status: accepted => closed * resolution: => fixed
Comment:
Fixed in 4.2 in b4189182a326efd86e234ce6ddc2d41eaf28a3a6
Since generated and hand written steady state files have the same filename, the idea is to add a specific header in the generated file so that the preprocessor can distinguish between the two.