From 87d571c7f0745e6b16ea05ae6d16df10938d465d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Thu, 23 Apr 2020 15:12:59 +0200
Subject: [PATCH] Block decomposition, bugfix:
 M_.block_structure_stat.block().mfs was wrong

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

diff --git a/src/StaticModel.cc b/src/StaticModel.cc
index 7f83c5b7..a70c9515 100644
--- a/src/StaticModel.cc
+++ b/src/StaticModel.cc
@@ -2125,7 +2125,7 @@ StaticModel::writeOutput(ostream &output, bool block) const
         }
       output << "block_structure_stat.block(" << b+1 << ").Simulation_Type = " << simulation_type << ";" << endl
              << "block_structure_stat.block(" << b+1 << ").endo_nbr = " << block_size << ";" << endl
-             << "block_structure_stat.block(" << b+1 << ").mfs = " << getBlockMfs(block) << ";" << endl
+             << "block_structure_stat.block(" << b+1 << ").mfs = " << getBlockMfs(b) << ";" << endl
              << "block_structure_stat.block(" << b+1 << ").equation = [" << tmp_s_eq.str() << "];" << endl
              << "block_structure_stat.block(" << b+1 << ").variable = [" << tmp_s.str() << "];" << endl;
     }
-- 
GitLab