Commit d16caeeb authored by Ferhat Mihoubi's avatar Ferhat Mihoubi

"M_" global variable is replaced by the "Model" input argument in block_kalman_filter call

parent 5666c5b1
......@@ -481,7 +481,7 @@ singularity_flag = 0;
if ((kalman_algo==1) || (kalman_algo==3))% Multivariate Kalman Filter
if no_missing_data_flag
if DynareOptions.block == 1
[err, LIK] = block_kalman_filter(T,R,Q,H,Pstar,Y,start,Z,kalman_tol,riccati_tol, M_.nz_state_var, M_.n_diag);
[err, LIK] = block_kalman_filter(T,R,Q,H,Pstar,Y,start,Z,kalman_tol,riccati_tol, Model.nz_state_var, Model.n_diag);
mexErrCheck('block_kalman_filter', err);
else
LIK = kalman_filter(Y,diffuse_periods+1,size(Y,2), ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment