From 129c8d9e46cd9e751df5b63aafcc1c7b808f64e2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 20 Aug 2015 14:02:22 +0200 Subject: [PATCH] fix typo in 357afaab47ebe52cecdffb8a7f8b12c754f22470 --- preprocessor/DynamicModel.cc | 4 ++-- preprocessor/StaticModel.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/preprocessor/DynamicModel.cc b/preprocessor/DynamicModel.cc index d12c13e01..fad9f1a9b 100644 --- a/preprocessor/DynamicModel.cc +++ b/preprocessor/DynamicModel.cc @@ -2160,7 +2160,7 @@ DynamicModel::writeDynamicModel(ostream &DynamicOutput, bool use_dll, bool julia ostringstream for_sym; if (output_type == oJuliaDynamicModel) { - for_sym << "g1[" << eq + 1 << "," << col_nb + 1 << "]"; + for_sym << "g2[" << eq + 1 << "," << col_nb + 1 << "]"; hessian_output << " @inbounds " << for_sym.str() << " = "; d2->writeOutput(hessian_output, output_type, temporary_terms, tef_terms); hessian_output << endl; @@ -2184,7 +2184,7 @@ DynamicModel::writeDynamicModel(ostream &DynamicOutput, bool use_dll, bool julia // Treating symetric elements if (id1 != id2) if (output_type == oJuliaDynamicModel) - hessian_output << " @inbounds g1[" << eq + 1 << "," << col_nb_sym + 1 << "] = " + hessian_output << " @inbounds g2[" << eq + 1 << "," << col_nb_sym + 1 << "] = " << for_sym.str() << endl; else { diff --git a/preprocessor/StaticModel.cc b/preprocessor/StaticModel.cc index 5646279bb..20661ae96 100644 --- a/preprocessor/StaticModel.cc +++ b/preprocessor/StaticModel.cc @@ -1236,7 +1236,7 @@ StaticModel::writeStaticModel(ostream &StaticOutput, bool use_dll, bool julia) c ostringstream for_sym; if (output_type == oJuliaDynamicModel) { - for_sym << "g1[" << eq + 1 << "," << col_nb + 1 << "]"; + for_sym << "g2[" << eq + 1 << "," << col_nb + 1 << "]"; hessian_output << " @inbounds " << for_sym.str() << " = "; d2->writeOutput(hessian_output, output_type, temporary_terms, tef_terms); hessian_output << endl; @@ -1260,7 +1260,7 @@ StaticModel::writeStaticModel(ostream &StaticOutput, bool use_dll, bool julia) c // Treating symetric elements if (symb_id1 != symb_id2) if (output_type == oJuliaDynamicModel) - hessian_output << " @inbounds g1[" << eq + 1 << "," << col_nb_sym + 1 << "] = " + hessian_output << " @inbounds g2[" << eq + 1 << "," << col_nb_sym + 1 << "] = " << for_sym.str() << endl; else {