New field: M_.discretionary_orig_eq_nbr

It indicates the number of equations written in the model block by the user in
the discretionary policy case.
master
Sébastien Villemot 2023-03-28 18:46:06 +02:00
parent cecc9aad69
commit 4282c98527
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 0 deletions

View File

@ -900,6 +900,9 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
<< "options_.ramsey_policy = " << (mod_file_struct.ramsey_model_present || mod_file_struct.ramsey_policy_present) << ";" << endl
<< "options_.discretionary_policy = " << mod_file_struct.discretionary_policy_present << ";" << endl;
if (mod_file_struct.discretionary_policy_present)
mOutputFile << "M_.discretionary_orig_eq_nbr = " << original_model.equation_number() << ";" << endl;
if (parallel_local_files.size() > 0)
{
mOutputFile << "options_.parallel_info.local_files = {" << endl;