Merge pull request #1082 from JohannesPfeifer/steady_state_file_check

Check whether steady state file returns column vector
time-shift
MichelJuillard 2015-10-12 16:33:29 +02:00
commit 6d23db41d0
1 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,9 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta
% explicit steady state file
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, ...
options);
if size(ys,2)>size(ys,1)
error('STEADY: steady_state-file must return a column vector, not a row vector.')
end
if info(1)
return;
end