From 18bd51952f74f4480260066dad02ebe4ae47d187 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 18 Aug 2011 17:23:09 +0200 Subject: [PATCH] output derivatives of static model when identification is present (closes #127) --- preprocessor/ModFile.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index fc671a946..662703b70 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -362,7 +362,10 @@ ModFile::computingPass(bool no_tmp_terms) || mod_file_struct.estimation_present || mod_file_struct.osr_present || mod_file_struct.ramsey_policy_present || mod_file_struct.identification_present) static_model.set_cutoff_to_zero(); - static_model.computingPass(global_eval_context, no_tmp_terms, false, block, byte_code); + if (mod_file_struct.identification_present) + static_model.computingPass(global_eval_context, no_tmp_terms, true, block, byte_code); + else + static_model.computingPass(global_eval_context, no_tmp_terms, false, block, byte_code); } // Set things to compute for dynamic model if (mod_file_struct.simul_present || mod_file_struct.check_present