From 7baeda8b8d7baaef193f8f664d9c3afa3f2b9f25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Thu, 10 Dec 2020 15:57:47 +0100
Subject: [PATCH] Occbin: add equation number in M_.occbin.constraint structure

Ref. #569
---
 src/EquationTags.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/EquationTags.cc b/src/EquationTags.cc
index 8fdac5a9..d6077212 100644
--- a/src/EquationTags.cc
+++ b/src/EquationTags.cc
@@ -123,6 +123,8 @@ EquationTags::writeOccbinOutput(ostream &output, const string &modstruct, bool j
       for (const auto & [key, value] : tags)
         output << modstruct << "occbin.constraint(" << idx << ")."
                << key << " = '" << value << "';" << endl;
+      output << modstruct << "occbin.constraint(" << idx << ").equation = "
+             << eqn+1 << ";" << endl;
     }
 }
 
-- 
GitLab