From c89682670de020b0019761c34a49d174837157ef Mon Sep 17 00:00:00 2001 From: Ferhat Mihoubi <ferhat.mihoubi@univ-evry.fr> Date: Fri, 22 Oct 2010 16:20:28 +0200 Subject: [PATCH] - The Jacobian matrix in the block decomposed model without bytecode option is now sparse --- StaticModel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StaticModel.cc b/StaticModel.cc index 5b872360..46ce79ef 100644 --- a/StaticModel.cc +++ b/StaticModel.cc @@ -277,7 +277,7 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const output << " global options_;" << endl; //The Temporary terms 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()) { -- GitLab