Pruning for second order approximation and simultaneous shocks

Hello!

I’m trying to use the pruning algorithm with the simult_ option, but I don’t know where to include the pruning in the code.
The case of singular shocks is straight forward, but in the simultaneous case, I can’t add the option “pruning” in the simult_ function.

Am I supposed to add something in the simult_() function or before the function?
Thank you very much for your time and help,

JM

y2 = simult_(M_,options_,initial_condition_states,oo_.dr,shock_matrix,2)

As far as I know, you can put ‘pruning’ as an option in the stoch_simul function - which you include before the simult function. Someone more experienced may give you a better answer.

Add

options_.pruning=1;

before simult_.

Hello and thanks for the answer. I just checked and it does not change de IRFs.
If I run the code with individual shocks and add the pruning option in stoch_simult(), it works and the IRFs are different. This is not the case with simult_() function, with options_.pruning=1 before it, even if I run individual shocks.
My Dynare version is 5.0, maybe that could be the problem?

Can you provide me with the code?