Error _it undefined

I used up to today Dynare 4.1, and my model worked correctly, now I switched to 4.2 and I got the following message. Does somebody know why?

??? Input argument “it_” is undefined.

Error in ==> Problemfix2_dynamic at 46
rhs =1-params(3)+params(3)*y(3)+x(it_, 2);

Error in ==> dr1 at 153

Error in ==> resol at 128

Error in ==> check at 45

Error in ==> Problemfix2 at 167

Error in ==> dynare at 132
evalin(‘base’,fname) ;

Thank you

Can you post your MOD file, so that we can replicate your problem and determine if it is a bug of Dynare?

Oh thanks I installed Dynare 4.2.2 and now it is fine, so probably was just a problem related to the install of 4.2.1.
Thanks anyway

i’m having the same problem with dynare 4.2.5
it happens when simulating the shock


??? Input argument “it_” is undefined.

Error in ==> model_dynamic at 16
rhs =y(5)-params(10)(y(2)-y(6)-x(it_, 1))+x(it_, 5)-x(it_+1, 5)+T22params(3)*(x(it_+1, 3)-x(it_,
3))+params(10)*params(1)*x(it_, 4);

Error in ==> simk at 229
[d1,jacobian] = feval([M_.fname 'dynamic’],oo.endo_simul(iyr),oo_.exo_simul, M_.params, it_);

Error in ==> simul at 95

Error in ==> model at 164

Error in ==> dynare at 120
evalin(‘base’,fname) ;[/quote]

model.mod (1.39 KB)

This is a bug in Dynare 4.2.5. Please replace simk.m in the Dynare-Matlab folder with the attached one.
simk.m (11.2 KB)

thank you it is working now