From 1d92adacf4a5eb8f95279221e5ba846e0c5141e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 17 Apr 2020 18:19:07 +0200
Subject: [PATCH] Block decomposition: fix bug with mfs > 0 introduced in
 5431451db37b6c1f73ee5b816fad0775927d11f4

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

diff --git a/src/VariableDependencyGraph.cc b/src/VariableDependencyGraph.cc
index f0187704..c1de21f8 100644
--- a/src/VariableDependencyGraph.cc
+++ b/src/VariableDependencyGraph.cc
@@ -391,7 +391,7 @@ VariableDependencyGraph::reorderRecursiveVariables(const set<int> &feedback_vert
 {
   vector<int> reordered_vertices;
   VariableDependencyGraph G(*this);
-  auto v_index = get(vertex_index, G);
+  auto v_index = get(vertex_index1, G);
   set<int, greater<int>> fv;
   for (auto its = feedback_vertices.begin(); its != feedback_vertices.end(); ++its)
     fv.insert(*its);
-- 
GitLab