From 7fff8b34064a98770151b23e45e52c19bfa40569 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 15 Mar 2022 16:47:03 +0100
Subject: [PATCH] =?UTF-8?q?Fix=20detection=20of=20nonlinearity=20of=20bloc?=
 =?UTF-8?q?ks=20of=20type=20=E2=80=9CSolve=20backward/forward=20simple?=
 =?UTF-8?q?=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

They were always marked as linear.
---
 src/ModelTree.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index 5703661b..37319bac 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -818,7 +818,9 @@ ModelTree::determineLinearBlocks()
   for (int blk = 0; blk < static_cast<int>(blocks.size()); blk++)
     switch (blocks[blk].simulation_type)
       {
+      case BlockSimulationType::solveBackwardSimple:
       case BlockSimulationType::solveBackwardComplete:
+      case BlockSimulationType::solveForwardSimple:
       case BlockSimulationType::solveForwardComplete:
         for (const auto &[indices, d1] : blocks_derivatives[blk])
           {
-- 
GitLab