Block decomposition: ModelTree::block_decomposed field was not properly set on copy/move

master
Sébastien Villemot 2022-11-29 12:38:11 +01:00
parent 53add0b2fe
commit ff296023a9
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,7 @@ ModelTree::ModelTree(const ModelTree &m) :
endo_idx_block2orig{m.endo_idx_block2orig},
eq_idx_orig2block{m.eq_idx_orig2block},
endo_idx_orig2block{m.endo_idx_orig2block},
block_decomposed{m.block_decomposed},
blocks{m.blocks},
endo2block{m.endo2block},
eq2block{m.eq2block},
@ -208,6 +209,7 @@ ModelTree::operator=(const ModelTree &m)
endo_idx_orig2block = m.endo_idx_orig2block;
equation_type_and_normalized_equation.clear();
blocks_derivatives.clear();
block_decomposed = m.block_decomposed;
blocks = m.blocks;
endo2block = m.endo2block;
eq2block = m.eq2block;