avoid call to dyn2vec in stoch_simul when the minimal_workspace option is passed, closes #946

time-shift
Houtan Bastani 2015-05-28 11:53:50 +02:00
parent fe8750c1bc
commit 60b3577a09
1 changed files with 3 additions and 1 deletions

View File

@ -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