From cd2bcad579919b5133cdd84923f2b24c958bb022 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 8 Oct 2024 23:02:16 +0200
Subject: [PATCH] =?UTF-8?q?Simplify=20example=20using=20=E2=80=9Cmodel=5Fo?=
 =?UTF-8?q?ptions=E2=80=9D=20command?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 examples/rbc.mod | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/examples/rbc.mod b/examples/rbc.mod
index 5629a78..00e4b97 100644
--- a/examples/rbc.mod
+++ b/examples/rbc.mod
@@ -50,20 +50,20 @@ rho     =   0.8000;
 effstar =   1.0000;
 sigma2  =   0;
 
-@#if !BLOCKS && !BYTECODE && !USE_DLL
-model;
-@#elseif BLOCKS && !BYTECODE && !USE_DLL
-model(block, cutoff=@{CUTOFF_VALUE}, mfs=@{MFS_VALUE});
-@#elseif !BLOCKS && BYTECODE
-model(bytecode);
-@#elseif BLOCKS && BYTECODE
-model(block, bytecode, cutoff=@{CUTOFF_VALUE}, mfs=@{MFS_VALUE});
-@#elseif !BLOCKS && USE_DLL
-model(use_dll);
-@#else
-model(block, use_dll, cutoff=@{CUTOFF_VALUE}, mfs=@{MFS_VALUE});
+@#if BLOCKS
+model_options(block, cutoff=@{CUTOFF_VALUE}, mfs=@{MFS_VALUE});
+@#endif
+
+@#if USE_DLL
+model_options(use_dll);
 @#endif
 
+@#if BYTECODE
+model_options(bytecode);
+@#endif
+
+model;
+
   // Eq. n°1:
   efficiency = rho*efficiency(-1) + EfficiencyInnovation;
 
-- 
GitLab