From 7a854184a346d08a005c0d062f5cbdfd85b84e75 Mon Sep 17 00:00:00 2001 From: ParkSuMin Date: Wed, 23 Sep 2026 14:02:51 +0300 Subject: [PATCH] New API version --- include/api.hpp | 3 +-- include/state.hpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/api.hpp b/include/api.hpp index 01a7aff..4fe9211 100644 --- a/include/api.hpp +++ b/include/api.hpp @@ -30,7 +30,7 @@ struct OutputParameters{ size_t point_count; }; -inline constexpr std::uint32_t PLUGIN_API_VERSION = 2; +inline constexpr std::uint32_t PLUGIN_API_VERSION = 3; #if defined(_WIN32) && defined(PLUGIN_BUILD) #define PLUGIN_EXPORT extern "C" __declspec(dllexport) @@ -56,4 +56,3 @@ inline constexpr const char* SYMBOL_NAME = "plugin_name"; inline constexpr const char* SYMBOL_DESCRIPTION = "plugin_description"; inline constexpr const char* SYMBOL_SOLVER = "solver"; inline constexpr const char* SYMBOL_WRITE_OUTPUT = "write_output"; - diff --git a/include/state.hpp b/include/state.hpp index 8ea80cd..9875929 100644 --- a/include/state.hpp +++ b/include/state.hpp @@ -28,8 +28,7 @@ inline State derivative(const State& state, }; } -inline State runge_kutta_step(const State& state, - const SolverParameters& parameters){ +inline State runge_kutta_step(const State& state, const SolverParameters& parameters){ double h = parameters.step; State k1 = derivative(state, parameters);