From ab589aaaa828def3a770095d08a8d1bcd6bc721f 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) --- ModFile.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ModFile.cc b/ModFile.cc index fc671a94..662703b7 100644 --- a/ModFile.cc +++ b/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