Fix detection of nonlinearity of blocks of type “Solve backward/forward simple”
They were always marked as linear.fix-tolerance-parameters
parent
9db21a231c
commit
7fff8b3406
|
@ -818,7 +818,9 @@ ModelTree::determineLinearBlocks()
|
||||||
for (int blk = 0; blk < static_cast<int>(blocks.size()); blk++)
|
for (int blk = 0; blk < static_cast<int>(blocks.size()); blk++)
|
||||||
switch (blocks[blk].simulation_type)
|
switch (blocks[blk].simulation_type)
|
||||||
{
|
{
|
||||||
|
case BlockSimulationType::solveBackwardSimple:
|
||||||
case BlockSimulationType::solveBackwardComplete:
|
case BlockSimulationType::solveBackwardComplete:
|
||||||
|
case BlockSimulationType::solveForwardSimple:
|
||||||
case BlockSimulationType::solveForwardComplete:
|
case BlockSimulationType::solveForwardComplete:
|
||||||
for (const auto &[indices, d1] : blocks_derivatives[blk])
|
for (const auto &[indices, d1] : blocks_derivatives[blk])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue