From 97fa005b3341f8b92392d407337083f3fde32b73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 13 Dec 2019 22:31:49 +0100
Subject: [PATCH] Use 1-based indexing in M_.nonzero_hessian_eqs

---
 src/DynamicModel.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc
index 5e288be4..4cb2ab3e 100644
--- a/src/DynamicModel.cc
+++ b/src/DynamicModel.cc
@@ -1875,7 +1875,7 @@ DynamicModel::printNonZeroHessianEquations(ostream &output) const
     {
       if (it != nonzero_hessian_eqs.begin())
         output << " ";
-      output << *it;
+      output << *it + 1;
     }
   if (nonzero_hessian_eqs.size() != 1)
     output << "]";
-- 
GitLab