- Correction of a bug in the Jacobian Matrix computation for a non block-decomposed model using bytecode

time-shift
Ferhat Mihoubi 2010-11-20 16:06:07 +01:00 committed by Sébastien Villemot
parent 8d79ed5db9
commit 88cdf0193c
1 changed files with 15 additions and 12 deletions

View File

@ -501,6 +501,8 @@ StaticModel::writeModelEquationsCode(const string file_name, const string bin_ba
{
FLDR_ fldr(i);
fldr.write(code_file, instruction_number);
if (derivatives[i].size())
{
for(vector<pair<int, int> >::const_iterator it = derivatives[i].begin();
it != derivatives[i].end(); it++)
{
@ -518,6 +520,7 @@ StaticModel::writeModelEquationsCode(const string file_name, const string bin_ba
}
FBINARY_ fbinary(oMinus);
fbinary.write(code_file, instruction_number);
}
FSTPSU_ fstpsu(i);
fstpsu.write(code_file, instruction_number);
}