From ed5696a938a9aebe9088ea7e4694d16f65aae7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= <stephane.adjemian@univ-lemans.fr> Date: Mon, 30 Dec 2013 16:34:26 +0100 Subject: [PATCH] Added test (+ cosmetic changes). --- tests/deterministic_simulations/rbc_det6.mod | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/deterministic_simulations/rbc_det6.mod b/tests/deterministic_simulations/rbc_det6.mod index 2d46248da..0bbb1008c 100644 --- a/tests/deterministic_simulations/rbc_det6.mod +++ b/tests/deterministic_simulations/rbc_det6.mod @@ -69,17 +69,15 @@ histval; Capital(0) = CapitalSS/2; end; -//options_.endogenous_terminal_period = 0; simul(periods=500); fff = oo_.endo_simul; -oo_.deterministic_simulation - -//options_.endogenous_terminal_period = 1; simul(periods=500, endogenous_terminal_period); ggg = oo_.endo_simul; -oo_.deterministic_simulation - -t1 = fff-ggg; +t1 = abs(fff-ggg); t2 = max(max(t1)); + +if t2>1e-5 + error('sim1::endogenous_terminal_period: round off error is greater than 1e-5!') +end -- GitLab