Merge branch 'octave_test' of git.dynare.org:JohannesPfeifer/dynare

Ref. !2074
bgp-dev
Sébastien Villemot 2022-09-12 16:48:49 +02:00
commit 90ee301824
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 6 additions and 1 deletions

View File

@ -57,8 +57,13 @@ if any(oo_.endo_simul(strmatch('i',M_.endo_names,'exact'),:)<-1e-6)
end
ds = dseries('rbcii-sim-data.mat');
if isoctave
tolerance=5e-5;
else
tolerance=1e-6;
end
if any(abs(transpose(oo_.endo_simul(strmatch('i',M_.endo_names,'exact'),:))-ds.Investment.data)>1e-6)
if any(abs(transpose(oo_.endo_simul(strmatch('i',M_.endo_names,'exact'),:))-ds.Investment.data)>tolerance)
error('Simulation with lmmcp returns different results.')
end