From 60b3577a09f3eb9cf3cc590241343b1f0fee8706 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Thu, 28 May 2015 11:53:50 +0200 Subject: [PATCH] avoid call to dyn2vec in stoch_simul when the minimal_workspace option is passed, closes #946 --- matlab/stoch_simul.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m index e9a4e5e2d1..8f0f0b75f9 100644 --- a/matlab/stoch_simul.m +++ b/matlab/stoch_simul.m @@ -146,7 +146,9 @@ if options_.periods > 0 && ~PI_PCL_solver end [ys, oo_] = simult(y0,oo_.dr,M_,options_,oo_); oo_.endo_simul = ys; - dyn2vec; + if ~options_.minimal_workspace + dyn2vec; + end end if options_.nomoments == 0 -- GitLab