#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.
#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
#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
#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
#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
#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.
#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
#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