From 3e9894028a6fd26afa544830098197c9ebf957d6 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
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

---
 preprocessor/ModFile.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc
index 7995792565..22e34f07c0 100644
--- a/preprocessor/ModFile.cc
+++ b/preprocessor/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)
-- 
GitLab