Fixed bug in steady state check (issue with mean preserving spread corrections).
parent
3cbd702b3e
commit
a341a4f8a3
|
@ -36,28 +36,25 @@ if nargin && ischar(junk)
|
||||||
tagname = junk;
|
tagname = junk;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
tags = M_.equations_tags;
|
tags = M_.equations_tags;
|
||||||
istag = 0;
|
istag = 0;
|
||||||
if length(tags)
|
if length(tags)
|
||||||
istag = 1;
|
istag = 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
steady_state_old = oo_.steady_state;
|
steady_state_old = oo_.steady_state;
|
||||||
|
|
||||||
info = 0;
|
|
||||||
if options_.steadystate_flag
|
|
||||||
[oo_.steady_state,M.params,info] = ...
|
|
||||||
evaluate_steady_state(oo_.steady_state,M_,options_,oo_,0);
|
|
||||||
end
|
|
||||||
|
|
||||||
% Keep of a copy of M_.Sigma_e
|
% Keep of a copy of M_.Sigma_e
|
||||||
Sigma_e = M_.Sigma_e;
|
Sigma_e = M_.Sigma_e;
|
||||||
|
|
||||||
% Set M_.Sigma_e=0 (we evaluate the *deterministic* static model)
|
% Set M_.Sigma_e=0 (we evaluate the *deterministic* static model)
|
||||||
M_.Sigma_e = zeros(size(Sigma_e));
|
M_.Sigma_e = zeros(size(Sigma_e));
|
||||||
|
|
||||||
|
info = 0;
|
||||||
|
if options_.steadystate_flag
|
||||||
|
[oo_.steady_state,M.params,info] = ...
|
||||||
|
evaluate_steady_state(oo_.steady_state,M_,options_,oo_,0);
|
||||||
|
end
|
||||||
|
|
||||||
% Compute the residuals
|
% Compute the residuals
|
||||||
if options_.block && ~options_.bytecode
|
if options_.block && ~options_.bytecode
|
||||||
|
|
Loading…
Reference in New Issue