Commit 840b5f4f authored by Sébastien Villemot's avatar Sébastien Villemot

Bugfix for M_.dynamic_tmp_nbr: first element was not including temp. terms for model local vars

parent a0f74f5c
Pipeline #1232 passed with stage
in 1 minute and 24 seconds
......@@ -3062,7 +3062,7 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
{
output << modstruct << "dynamic_tmp_nbr = [";
for (size_t i = 0; i < temporary_terms_derivatives.size(); i++)
output << temporary_terms_derivatives[i].size() << "; ";
output << temporary_terms_derivatives[i].size() + (i == 0 ? temporary_terms_mlv.size() : 0) << "; ";
output << "];" << endl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment