From ccbf41ff047568227c1d3b2b7b8395c2976b6706 Mon Sep 17 00:00:00 2001 From: Francesco Biscani Date: Tue, 10 Sep 2024 10:53:21 +0200 Subject: [PATCH] Fix test, update docs. --- doc/breaking_changes.rst | 13 +++++++++++++ doc/changelog.rst | 6 ++++++ test/taylor_adaptive_batch.cpp | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/breaking_changes.rst b/doc/breaking_changes.rst index 94f7451c5..056104aeb 100644 --- a/doc/breaking_changes.rst +++ b/doc/breaking_changes.rst @@ -8,6 +8,19 @@ Breaking changes 6.0.0 ----- +API/behaviour changes +~~~~~~~~~~~~~~~~~~~~~ + +In heyoka 6.0.0, the array of parameter values passed to the constructor +of a Taylor integrator must either be empty (in which case the parameter +values will be zero-inited), or it must have the correct size. + +In previous versions, heyoka would pad with zeroes the array of parameter values +if its size was less than the correct one. + +General +~~~~~~~ + - Support for LLVM<15 has been dropped. .. _bchanges_4_0_0: diff --git a/doc/changelog.rst b/doc/changelog.rst index ef5b734ac..316d27b2a 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -25,6 +25,12 @@ New Changes ~~~~~~~ +- **BREAKING**: the array of parameter values passed to the + constructor of a Taylor integrator must now either be empty + (in which case the parameter values will be zero-inited), + or have the correct size + (`#451 `__). + This is a :ref:`breaking change `. - **BREAKING**: the minimum required LLVM version is now 15 (`#444 `__). This is a :ref:`breaking change `. diff --git a/test/taylor_adaptive_batch.cpp b/test/taylor_adaptive_batch.cpp index 6e2d1a127..84e918b5a 100644 --- a/test/taylor_adaptive_batch.cpp +++ b/test/taylor_adaptive_batch.cpp @@ -1283,7 +1283,7 @@ TEST_CASE("stream output") auto ta = taylor_adaptive_batch{{prime(x) = v - par[1], prime(v) = -9.8 * sin(x + par[0])}, {fp_t(0.), fp_t(0.01), fp_t(0.5), fp_t(0.51)}, 2u, - kw::pars = std::vector{fp_t(-1e-4), fp_t(-1.1e-4)}}; + kw::pars = std::vector{fp_t(-1e-4), fp_t(-1.1e-4), fp_t(0), fp_t(0)}}; std::ostringstream oss;