From a82d24fd413317dfb0fa3c695839427bb783d768 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Thu, 8 Sep 2022 11:58:09 +0200 Subject: [PATCH] rbcii_MCP.mod: increase tolerance for Octave --- tests/ep/rbcii_MCP.mod | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ep/rbcii_MCP.mod b/tests/ep/rbcii_MCP.mod index f3fca41d2..69bb5912e 100644 --- a/tests/ep/rbcii_MCP.mod +++ b/tests/ep/rbcii_MCP.mod @@ -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