Bytecode: still another fix for temporary terms

issue#70
Sébastien Villemot 2020-05-13 15:16:38 +02:00
parent 2e6bc7ecaa
commit c9388da649
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 6 deletions

View File

@ -683,13 +683,8 @@ DynamicModel::writeModelEquationsCode(const string &basename) const
Write_Inf_To_Bin_File(basename + "/model/bytecode/dynamic.bin", u_count_int, file_open, simulation_type == BlockSimulationType::solveTwoBoundariesComplete, symbol_table.endo_nbr());
file_open = true;
// Compute the union of temporary terms from residuals and 1st derivatives
temporary_terms_t temporary_terms = temporary_terms_derivatives[0];
copy(temporary_terms_derivatives[1].begin(), temporary_terms_derivatives[1].end(),
inserter(temporary_terms, temporary_terms.end()));
//Temporary variables declaration
FDIMT_ fdimt(temporary_terms.size());
FDIMT_ fdimt(temporary_terms_idxs.size());
fdimt.write(code_file, instruction_number);
vector<int> exo, exo_det, other_endo;