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
issue#70
sebastien 2009-10-01 08:03:40 +00:00
parent 2f1382fab5
commit 04cec8a438
1 changed files with 1 additions and 1 deletions

View File

@ -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);