From 2154227990c0d58aa89b8e78fdb910207f4d46d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Thu, 23 Apr 2020 16:03:38 +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 1da00b22..04ff1aeb 100644 --- a/src/StaticModel.cc +++ b/src/StaticModel.cc @@ -2026,7 +2026,7 @@ StaticModel::writeOutput(ostream &output, bool block) const } output << "block_structure_stat.block(" << b+1 << ").Simulation_Type = " << static_cast<int>(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