From 04cec8a4386a9ded4230ac7c80dd6cd6434adc6c Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 1 Oct 2009 08:03:40 +0000 Subject: [PATCH] preprocessor: always compute the Dynamic hessian when "identification" keyword is present git-svn-id: https://www.dynare.org/svn/dynare/trunk@3003 ac1d8469-bf42-47a9-8791-bf33cf982152 --- ModFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModFile.cc b/ModFile.cc index 155eed70..2829944a 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -197,7 +197,7 @@ ModFile::computingPass(bool no_tmp_terms) cerr << "ERROR: Incorrect order option..." << endl; exit(EXIT_FAILURE); } - bool hessian = mod_file_struct.order_option >= 2; + bool hessian = mod_file_struct.order_option >= 2 || mod_file_struct.identification_present; bool thirdDerivatives = mod_file_struct.order_option == 3; bool paramsDerivatives = mod_file_struct.identification_present; dynamic_model.computingPass(true, hessian, thirdDerivatives, paramsDerivatives, global_eval_context, no_tmp_terms, false, use_dll);