Fix detection of nonlinearity of blocks of type “Solve backward/forward simple”

They were always marked as linear.
fix-tolerance-parameters
Sébastien Villemot 2022-03-15 16:47:03 +01:00
parent 9db21a231c
commit 7fff8b3406
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 0 deletions

View File

@ -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])
{