From e0fe1e71721cd98b1b1c7b973a8286083e91a7e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Thu, 7 Mar 2024 15:47:44 +0100 Subject: [PATCH] Bytecode: add lead/lag debug information for derivatives w.r.t. endogenous --- mex/sources/bytecode/Evaluate.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mex/sources/bytecode/Evaluate.cc b/mex/sources/bytecode/Evaluate.cc index 927e46c710..cf5591a0c2 100644 --- a/mex/sources/bytecode/Evaluate.cc +++ b/mex/sources/bytecode/Evaluate.cc @@ -323,6 +323,8 @@ Evaluate::error_location(it_code_type expr_begin, it_code_type faulty_op, int it case ExpressionType::FirstEndoDerivative: Error_loc << " with respect to endogenous variable " << symbol_table.getName(SymbolType::endogenous, EQN_dvar1); + if (EQN_lag1 != 0) + Error_loc << "(" << EQN_lag1 << ")"; break; case ExpressionType::FirstExoDerivative: Error_loc << " with respect to exogenous variable " -- GitLab