From f58b9b755eb571ba55a1fd97f4d82549a4248297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 8 Aug 2012 15:34:43 +0200 Subject: [PATCH] Provide dynamic 3rd derivaties for estimation w/ analytic derivation --- preprocessor/ModFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index b0c588f66..3f6b4a429 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -403,7 +403,7 @@ ModFile::computingPass(bool no_tmp_terms) exit(EXIT_FAILURE); } bool hessian = mod_file_struct.order_option >= 2 || mod_file_struct.identification_present || mod_file_struct.estimation_analytic_derivation; - bool thirdDerivatives = mod_file_struct.order_option == 3; + bool thirdDerivatives = mod_file_struct.order_option == 3 || mod_file_struct.estimation_analytic_derivation; bool paramsDerivatives = mod_file_struct.identification_present || mod_file_struct.estimation_analytic_derivation; dynamic_model.computingPass(true, hessian, thirdDerivatives, paramsDerivatives, global_eval_context, no_tmp_terms, block, use_dll, byte_code); }