[Trac] #83: persistent variables must be cleared at the beginning of a Dynare run
#83: persistent variables must be cleared at the beginning of a Dynare run --------------------------+------------------------------------------------- Reporter: michel | Owner: michel Type: bug | Status: new Priority: minor | Milestone: Component: Core M-files | Version: 4.1.0 Keywords: | --------------------------+------------------------------------------------- persistent variables in *.m files trigger hard to understand errors if the user run successively two different *.mod files with 'noclearall' option. Whenever a function uses persistent variables, there should be an explicit initialize option and not rely on empty persistent variables as, for example, priordens.m currently does. -- Ticket URL: <https://www.dynare.org/trac/ticket/83> Dynare <http://www.dynare.org> The Dynare project
#83: persistent variables must be cleared at the beginning of a Dynare run ---------------------------+------------------------------------------------ Reporter: michel | Owner: michel Type: bug | Status: accepted Priority: minor | Milestone: Component: Core M-files | Version: 4.1.0 Resolution: | Keywords: ---------------------------+------------------------------------------------ Changes (by michel): * status: new => accepted -- Ticket URL: <https://www.dynare.org/trac/ticket/83#comment:1> Dynare <http://www.dynare.org> The Dynare project
#83: persistent variables must be cleared at the beginning of a Dynare run ---------------------------+------------------------------------------------ Reporter: michel | Owner: michel Type: bug | Status: accepted Priority: minor | Milestone: Component: Core M-files | Version: 4.1.0 Resolution: | Keywords: ---------------------------+------------------------------------------------ Comment(by michel): - priordens.m has been corrected. Initialization takes place in set_prior.m -- Ticket URL: <https://www.dynare.org/trac/ticket/83#comment:2> Dynare <http://www.dynare.org> The Dynare project
#83: persistent variables must be cleared at the beginning of a Dynare run ---------------------------+------------------------------------------------ Reporter: michel | Owner: michel Type: bug | Status: accepted Priority: minor | Milestone: Component: Core M-files | Version: 4.1.0 Resolution: | Keywords: ---------------------------+------------------------------------------------ Comment(by michel): In current code called by Dynare, only mr_gstep.m and mr_hessian.m need still to be corrected. There are other unsafe functions in matlab/ directory but it is still experimental code Additional documentation available at http://www.dynare.org/DynareWiki -- Ticket URL: <https://www.dynare.org/trac/ticket/83#comment:3> Dynare <http://www.dynare.org> The Dynare project
#83: persistent variables must be cleared at the beginning of a Dynare run ---------------------------+------------------------------------------------ Reporter: michel | Owner: michel Type: bug | Status: accepted Priority: minor | Milestone: Component: Core M-files | Version: 4.1.0 Resolution: | Keywords: ---------------------------+------------------------------------------------ Comment(by sebastien): The correct URL is: http://www.dynare.org/DynareWiki/PersistentVariables -- Ticket URL: <https://www.dynare.org/trac/ticket/83#comment:4> Dynare <http://www.dynare.org> The Dynare project
#83: persistent variables must be cleared at the beginning of a Dynare run ---------------------------+------------------------------------------------ Reporter: michel | Owner: michel Type: bug | Status: accepted Priority: minor | Milestone: Component: Core M-files | Version: 4.1.0 Resolution: | Keywords: ---------------------------+------------------------------------------------ Comment(by sebastien): mr_gstep.m and mr_hessian.m fixed in 47037687d5ca6ae2b2df3dd9954a2ccf0d8ed394 (for master) and in 531ef8783ff6eee99f593e7bf70890f362b5c84f (for 4.1). Leaving this ticket open for the remaining experimental code. -- Ticket URL: <https://www.dynare.org/trac/ticket/83#comment:5> Dynare <http://www.dynare.org> The Dynare project
#83: persistent variables must be cleared at the beginning of a Dynare run ---------------------------+------------------------------------------------ Reporter: michel | Owner: stepan Type: bug | Status: assigned Priority: minor | Milestone: 4.3 Component: Core M-files | Version: 4.1.0 Resolution: | Keywords: ---------------------------+------------------------------------------------ Changes (by sebastien): * owner: michel => stepan * status: accepted => assigned * milestone: => 4.3 -- Ticket URL: <https://www.dynare.org/trac/ticket/83#comment:6> Dynare <http://www.dynare.org> The Dynare project
#83: persistent variables must be cleared at the beginning of a Dynare run ----------------------+----------------------------------------------------- Reporter: michel | Owner: stepan Type: bug | Status: closed Priority: minor | Milestone: 4.3 Component: General | Version: 4.1.0 Resolution: fixed | Keywords: ----------------------+----------------------------------------------------- Changes (by sebastien): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://www.dynare.org/trac/ticket/83#comment:7> Dynare <http://www.dynare.org> The Dynare project
participants (1)
-
Trac Dynare