Skip to content
Snippets Groups Projects
Verified Commit efd2554b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix tests/deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag.mod

A bug was introduced in 440a0e46, erroneously
changing the name of the baseline for a comparison.

The bug was left unnoticed with recent versions of MATLAB and on Octave,
because the first array in the ensuing comparison had zero line, and because of
automatic broadcasting, the error message was not triggered.

However, the bug was exposed on MATLAB < R2016b.

(cherry picked from commit 8d4f5fbd)
parent 3c802cc1
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ if max(abs(base_results.oo_.exo_simul(1:end-base_results.M_.maximum_lead-base_re ...@@ -58,7 +58,7 @@ if max(abs(base_results.oo_.exo_simul(1:end-base_results.M_.maximum_lead-base_re
end end
clear base_results; clear base_results;
base_results_aux_vars=load(['sim_exo_lead_lag_aux_vars' filesep 'Output' filesep 'sim_exo_lead_lag_aux_vars_results.mat']); base_results_aux_vars=load(['sim_endo_lead_lag_aux_vars' filesep 'Output' filesep 'sim_endo_lead_lag_aux_vars_results.mat']);
if max(abs(base_results_aux_vars.oo_.endo_simul(strmatch('z_backward_lag_2',base_results_aux_vars.M_.endo_names,'exact'),1:end-base_results_aux_vars.M_.maximum_lead) -... if max(abs(base_results_aux_vars.oo_.endo_simul(strmatch('z_backward_lag_2',base_results_aux_vars.M_.endo_names,'exact'),1:end-base_results_aux_vars.M_.maximum_lead) -...
oo_.endo_simul(strmatch('AUX_ENDO_LAG_2_2',M_.endo_names,'exact'),1:end-M_.maximum_lag)))>1e-8 oo_.endo_simul(strmatch('AUX_ENDO_LAG_2_2',M_.endo_names,'exact'),1:end-M_.maximum_lag)))>1e-8
error('Translation of endogenous variables is wrong') error('Translation of endogenous variables is wrong')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment