- The Jacobian matrix in the block decomposed model without bytecode option is now sparse
parent
f7f83d6973
commit
c89682670d
|
@ -277,7 +277,7 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const
|
||||||
output << " global options_;" << endl;
|
output << " global options_;" << endl;
|
||||||
//The Temporary terms
|
//The Temporary terms
|
||||||
if (simulation_type != EVALUATE_BACKWARD && simulation_type != EVALUATE_FORWARD)
|
if (simulation_type != EVALUATE_BACKWARD && simulation_type != EVALUATE_FORWARD)
|
||||||
output << " g1 = zeros(" << block_mfs << ", " << block_mfs << ");" << endl;
|
output << " g1 = spalloc(" << block_mfs << ", " << block_mfs << ", " << derivative_endo[block].size() << ");" << endl;
|
||||||
|
|
||||||
if (v_temporary_terms_inuse[block].size())
|
if (v_temporary_terms_inuse[block].size())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue