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

issue#70
Sébastien Villemot 2019-05-14 17:08:23 +02:00
parent a0f74f5c16
commit 840b5f4f7f
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}