- Correction of a bug in the Jacobian Matrix computation for a non block-decomposed model using bytecode
parent
8d79ed5db9
commit
88cdf0193c
|
@ -501,6 +501,8 @@ StaticModel::writeModelEquationsCode(const string file_name, const string bin_ba
|
||||||
{
|
{
|
||||||
FLDR_ fldr(i);
|
FLDR_ fldr(i);
|
||||||
fldr.write(code_file, instruction_number);
|
fldr.write(code_file, instruction_number);
|
||||||
|
if (derivatives[i].size())
|
||||||
|
{
|
||||||
for(vector<pair<int, int> >::const_iterator it = derivatives[i].begin();
|
for(vector<pair<int, int> >::const_iterator it = derivatives[i].begin();
|
||||||
it != derivatives[i].end(); it++)
|
it != derivatives[i].end(); it++)
|
||||||
{
|
{
|
||||||
|
@ -518,6 +520,7 @@ StaticModel::writeModelEquationsCode(const string file_name, const string bin_ba
|
||||||
}
|
}
|
||||||
FBINARY_ fbinary(oMinus);
|
FBINARY_ fbinary(oMinus);
|
||||||
fbinary.write(code_file, instruction_number);
|
fbinary.write(code_file, instruction_number);
|
||||||
|
}
|
||||||
FSTPSU_ fstpsu(i);
|
FSTPSU_ fstpsu(i);
|
||||||
fstpsu.write(code_file, instruction_number);
|
fstpsu.write(code_file, instruction_number);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue