From 33d340dd04d7f9ba30be1572b8b4239c9eadd61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Thu, 25 Nov 2010 16:04:56 +0100 Subject: [PATCH] Preprocessor: also perform numeric initializations in stochastic context --- ModFile.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index 0b5a20c2..ccb00841 100644 --- a/ModFile.cc +++ b/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)