Skip to content
Snippets Groups Projects
Commit 04cec8a4 authored by sebastien's avatar sebastien
Browse files

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
parent 2f1382fa
No related branches found
No related tags found
No related merge requests found
...@@ -197,7 +197,7 @@ ModFile::computingPass(bool no_tmp_terms) ...@@ -197,7 +197,7 @@ ModFile::computingPass(bool no_tmp_terms)
cerr << "ERROR: Incorrect order option..." << endl; cerr << "ERROR: Incorrect order option..." << endl;
exit(EXIT_FAILURE); 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 thirdDerivatives = mod_file_struct.order_option == 3;
bool paramsDerivatives = mod_file_struct.identification_present; bool paramsDerivatives = mod_file_struct.identification_present;
dynamic_model.computingPass(true, hessian, thirdDerivatives, paramsDerivatives, global_eval_context, no_tmp_terms, false, use_dll); dynamic_model.computingPass(true, hessian, thirdDerivatives, paramsDerivatives, global_eval_context, no_tmp_terms, false, use_dll);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment