From 66c51b881a1f0ddf25c37c0f163e42f5be659f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 18 Jul 2014 12:44:15 +0200 Subject: [PATCH] Fix equation number associated to Ramsey Lagrange multipliers in M_.aux_vars. Closes #695 --- SymbolTable.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SymbolTable.cc b/SymbolTable.cc index aa636b97..9d43b791 100644 --- a/SymbolTable.cc +++ b/SymbolTable.cc @@ -251,7 +251,7 @@ SymbolTable::writeOutput(ostream &output) const throw (NotYetFrozenException) << "M_.aux_vars(" << i+1 << ").orig_lead_lag = " << aux_vars[i].get_orig_lead_lag() << ";" << endl; break; case avMultiplier: - output << "M_.aux_vars(" << i+1 << ").eq_nbr = '" << aux_vars[i].get_equation_number_for_multiplier() << "';" << endl; + output << "M_.aux_vars(" << i+1 << ").eq_nbr = '" << aux_vars[i].get_equation_number_for_multiplier() + 1 << "';" << endl; break; case avDiffForward: output << "M_.aux_vars(" << i+1 << ").orig_index = " << getTypeSpecificID(aux_vars[i].get_orig_symb_id())+1 << ";" << endl;