Fix bug introduced in 7d16fff786
Here, emplace() and insert() are not interchangeable because this is a std::set of std::vector<int>, and we really want the initializer-list constructor of std::vector (and not the two int's constructor). Fixes the test deterministic_simulations/lola_solve_one_boundary.modissue#70
parent
fdefb0f52a
commit
d9f7ac4c9b
|
@ -411,7 +411,7 @@ ModelTree::evaluateAndReduceJacobian(const eval_context_t &eval_context, jacob_m
|
|||
{
|
||||
if (verbose)
|
||||
cout << "the coefficient related to variable " << var << " with lag " << lag << " in equation " << eq << " is equal to " << val << " and is set to 0 in the incidence matrix (size=" << symbol_table.endo_nbr() << ")" << endl;
|
||||
jacobian_elements_to_delete.emplace(eq, deriv_id);
|
||||
jacobian_elements_to_delete.insert({ eq, deriv_id });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue