... | @@ -8,6 +8,24 @@ We most strongly encourage you modify your own code to comply with the new versi |
... | @@ -8,6 +8,24 @@ We most strongly encourage you modify your own code to comply with the new versi |
|
|
|
|
|
## Changes related to Dynare internals
|
|
## Changes related to Dynare internals
|
|
|
|
|
|
|
|
1. Dynare has phased out the use of global variables in `stoch_simul` and its related subfunctions like `simult_`, `irf`, and `discretionary_policy`. In case you looped over
|
|
|
|
`stoch_simul` using a call to
|
|
|
|
```matlab
|
|
|
|
info = stoch_simul(var_list_);
|
|
|
|
```
|
|
|
|
you now need to now add the previous three global variables `M_, options_, oo_` as the first inputs:
|
|
|
|
```matlab
|
|
|
|
[info, oo_, options_] = stoch_simul(M_, options_, oo_, var_list_);
|
|
|
|
```
|
|
|
|
Previous calls to `simult_` like
|
|
|
|
```matlab
|
|
|
|
y_sim_one_shock = simult_(y0,oo_.dr,temp_shock_mat,options_.order);
|
|
|
|
```
|
|
|
|
need to add the previous two global variables `M_,options_` as their first two inputs:
|
|
|
|
```matlab
|
|
|
|
y_sim_one_shock = simult_(M_,options_,y0,oo_.dr,temp_shock_mat,options_.order);
|
|
|
|
```
|
|
|
|
|
|
1. List of names have been converted from character arrays to cell arrays of strings. This affects `M_.endo_names`, `M_.exo_names`, `M_.param_names`, `oo_.var_list`, and `options_.varobs`. For that reason, you may have to replace round by curly brackets.
|
|
1. List of names have been converted from character arrays to cell arrays of strings. This affects `M_.endo_names`, `M_.exo_names`, `M_.param_names`, `oo_.var_list`, and `options_.varobs`. For that reason, you may have to replace round by curly brackets.
|
|
2. In addition, Dynare 4.6 has phased out the use of global variables in user-defined steady state files. Instead, the model structure `M_` and the options-structure `options_` are now passed as input arguments, while the parameter vector `params` has become an output argument.
|
|
2. In addition, Dynare 4.6 has phased out the use of global variables in user-defined steady state files. Instead, the model structure `M_` and the options-structure `options_` are now passed as input arguments, while the parameter vector `params` has become an output argument.
|
|
3. Related to the previous two changes, user-defined steady state files need to be adjusted for i) the interface change related to globals and ii) for the reading out of variables and parameters to be compatible with the cell arrays. In case you are using legacy files, you will generally encounter the error message
|
|
3. Related to the previous two changes, user-defined steady state files need to be adjusted for i) the interface change related to globals and ii) for the reading out of variables and parameters to be compatible with the cell arrays. In case you are using legacy files, you will generally encounter the error message
|
... | | ... | |