From f640c284037afaa5ef68aac23fdbc8f415d4aa49 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 14 Nov 2016 12:30:52 +0100 Subject: [PATCH] preprocessor: create field in M_ that is true when hessian is zero, false otherwise. closes #1335 --- ModFile.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ModFile.cc b/ModFile.cc index 79957925..22e34f07 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -685,6 +685,8 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo mOutputFile << "};" << endl; } + mOutputFile << "M_.hessian_eq_zero = " << dynamic_model.checkHessianZero() << ";" << endl; + config_file.writeCluster(mOutputFile); if (byte_code)