From e5c7e848e4aba53a5b10c90490a02f9bcd4cfb30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Thu, 25 Nov 2010 16:04:56 +0100
Subject: [PATCH] Preprocessor: also perform numeric initializations in
 stochastic context

---
 preprocessor/ModFile.cc | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc
index 0b5a20c25..ccb008410 100644
--- a/preprocessor/ModFile.cc
+++ b/preprocessor/ModFile.cc
@@ -317,11 +317,9 @@ ModFile::computingPass(bool no_tmp_terms)
       // Set things to compute for dynamic model
       if (dynamic_model_needed)
         {
+          dynamic_model.initializeVariablesAndEquations();
           if (mod_file_struct.simul_present)
-            {
-              dynamic_model.initializeVariablesAndEquations();
-              dynamic_model.computingPass(true, false, false, false, global_eval_context, no_tmp_terms, block, use_dll, byte_code);
-            }
+            dynamic_model.computingPass(true, false, false, false, global_eval_context, no_tmp_terms, block, use_dll, byte_code);
           else
             {
               if (mod_file_struct.order_option < 1 || mod_file_struct.order_option > 3)
-- 
GitLab