Use 1-based indexing in M_.nonzero_hessian_eqs

issue#70
Sébastien Villemot 2019-12-13 22:31:49 +01:00
parent 141cff0761
commit 97fa005b33
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -1875,7 +1875,7 @@ DynamicModel::printNonZeroHessianEquations(ostream &output) const
{
if (it != nonzero_hessian_eqs.begin())
output << " ";
output << *it;
output << *it + 1;
}
if (nonzero_hessian_eqs.size() != 1)
output << "]";