diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index f31baf5f5..553f0b3e2 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -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) {