preprocessor: add field that contains the total number of equations, #728

issue#70
Houtan Bastani 2014-10-13 17:17:50 +02:00
parent 5146a43084
commit fbfd2d7e17
1 changed files with 2 additions and 1 deletions

View File

@ -740,7 +740,8 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
if (block && !byte_code)
mOutputFile << "addpath " << basename << ";" << endl;
mOutputFile << "M_.orig_eq_nbr = " << orig_eqn_nbr << ";" << endl;
mOutputFile << "M_.orig_eq_nbr = " << orig_eqn_nbr << ";" << endl
<< "M_.eq_nbr = " << dynamic_model.equation_number() << ";" << endl;
if (dynamic_model.equation_number() > 0)
{