From c7d0d3f9f70c3a5e7fdeb2db74f3bdd3afc906e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Mon, 9 Sep 2024 16:15:50 +0200 Subject: [PATCH] Preprocessor update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit – initial HANK support (not yet documented) – the “steady†command now supports the “noprint†option --- doc/manual/source/the-model-file.rst | 4 ++++ mex/sources/bytecode/Evaluate.cc | 4 ++++ preprocessor | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/manual/source/the-model-file.rst b/doc/manual/source/the-model-file.rst index 68c9871d49..fb4bea3705 100644 --- a/doc/manual/source/the-model-file.rst +++ b/doc/manual/source/the-model-file.rst @@ -3093,6 +3093,10 @@ Finding the steady state with Dynare nonlinear solver unit roots as, in this case, the steady state is not unique or doesn’t exist. + .. option:: noprint + + See :opt:`noprint`. + .. _steady_markowitz: .. option:: markowitz = DOUBLE diff --git a/mex/sources/bytecode/Evaluate.cc b/mex/sources/bytecode/Evaluate.cc index 8b631f1f4e..32a7a42a5c 100644 --- a/mex/sources/bytecode/Evaluate.cc +++ b/mex/sources/bytecode/Evaluate.cc @@ -668,6 +668,8 @@ Evaluate::print_expression(const Evaluate::it_code_type& expr_begin, return "diff"; case UnaryOpcode::adl: return "adl"; + case UnaryOpcode::sum: + throw FatalException {"Unexpected sum operator"}; } throw FatalException {"Unknown opcode"}; }(); @@ -1856,6 +1858,8 @@ Evaluate::evaluateBlock(int it_, int y_kmin, double* __restrict__ y, int y_size, throw FatalException {"Internal error: operator diff should not appear"}; case UnaryOpcode::adl: throw FatalException {"Internal error: operator adl should not appear"}; + case UnaryOpcode::sum: + throw FatalException {"Internal error: operator sum should not appear"}; } break; case Tag::FTRINARY: diff --git a/preprocessor b/preprocessor index e38bcb06b3..1e68b2fcda 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit e38bcb06b340db7bbf7f14ef71b0c5d89bebce04 +Subproject commit 1e68b2fcda6834919b61660e0ba7fb4d20f27dc9 -- GitLab