From 5449c2ee933052fdf465f3580be6f032d85c3eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Thu, 30 Apr 2020 14:57:50 +0200 Subject: [PATCH] DynamicModel: add missing members in copy constructor/assignment operator (manually cherry picked from commit b1a739c56ad529210987669a6a82ba91ab4f30b2) --- src/DynamicModel.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc index 2b821709..49f9dd90 100644 --- a/src/DynamicModel.cc +++ b/src/DynamicModel.cc @@ -130,7 +130,9 @@ DynamicModel::DynamicModel(const DynamicModel &m) : xref_exo{m.xref_exo}, xref_exo_det{m.xref_exo_det}, nonzero_hessian_eqs{m.nonzero_hessian_eqs}, + dynJacobianColsNbr{m.dynJacobianColsNbr}, v_temporary_terms_inuse{m.v_temporary_terms_inuse}, + variableMapping{m.variableMapping}, map_idx{m.map_idx}, global_temporary_terms{m.global_temporary_terms}, block_type_firstequation_size_mfs{m.block_type_firstequation_size_mfs}, @@ -194,10 +196,14 @@ DynamicModel::operator=(const DynamicModel &m) xref_exo_det = m.xref_exo_det; nonzero_hessian_eqs = m.nonzero_hessian_eqs; + dynJacobianColsNbr = m.dynJacobianColsNbr; + v_temporary_terms.clear(); v_temporary_terms_inuse = m.v_temporary_terms_inuse; + variableMapping = m.variableMapping; + first_chain_rule_derivatives.clear(); map_idx = m.map_idx; -- GitLab